From 9091f2b108a2bbf3d5a793a6b66bbe694e923692 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 29 Jun 2018 10:58:06 -0700 Subject: [PATCH] command/connect/proxy: ignore check doesn't exist on -register --- command/connect/proxy/register.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/command/connect/proxy/register.go b/command/connect/proxy/register.go index 332607b8a..88f1c7635 100644 --- a/command/connect/proxy/register.go +++ b/command/connect/proxy/register.go @@ -4,6 +4,7 @@ import ( "fmt" "log" "os" + "strings" "sync" "time" @@ -222,7 +223,9 @@ func (r *RegisterMonitor) heartbeat() { // Trigger the health check passing. We don't need to retry this // since we do a couple tries within the TTL period. 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) + } } }