mirror of https://github.com/hashicorp/consul
Merge pull request #4314 from hashicorp/b-ignore-check
command/connect/proxy: ignore check doesn't exist on -registerpull/4445/head
commit
effb17098a
|
@ -4,6 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
@ -222,7 +223,9 @@ func (r *RegisterMonitor) heartbeat() {
|
||||||
// Trigger the health check passing. We don't need to retry this
|
// Trigger the health check passing. We don't need to retry this
|
||||||
// since we do a couple tries within the TTL period.
|
// since we do a couple tries within the TTL period.
|
||||||
if err := r.Client.Agent().PassTTL(r.checkID(), ""); err != nil {
|
if err := r.Client.Agent().PassTTL(r.checkID(), ""); err != nil {
|
||||||
r.Logger.Printf("[WARN] proxy: heartbeat failed: %s", err)
|
if !strings.Contains(err.Error(), "does not have associated") {
|
||||||
|
r.Logger.Printf("[WARN] proxy: heartbeat failed: %s", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue