command/connect/proxy: ignore check doesn't exist on -register

This commit is contained in:
Mitchell Hashimoto 2018-06-29 10:58:06 -07:00
parent 4c336314fc
commit e39dfc919a
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 4 additions and 1 deletions

View File

@ -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)
}
}
}