command/connect/proxy: ignore check doesn't exist on -register
This commit is contained in:
parent
c481985c33
commit
9091f2b108
|
@ -4,6 +4,7 @@ import (
|
|||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
|
@ -222,9 +223,11 @@ 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 {
|
||||
if !strings.Contains(err.Error(), "does not have associated") {
|
||||
r.Logger.Printf("[WARN] proxy: heartbeat failed: %s", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// deregister deregisters the service.
|
||||
func (r *RegisterMonitor) deregister() {
|
||||
|
|
Loading…
Reference in a new issue