From d5c2414893fefc19c1b8b6d4666a6d209addf7fb Mon Sep 17 00:00:00 2001 From: Cathal Coffey Date: Fri, 5 Feb 2021 10:12:54 +0000 Subject: [PATCH] Move 'heartbeat is too high' back to Debug logs again --- go/logic/migrator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/logic/migrator.go b/go/logic/migrator.go index 5bc6997..f866cfc 100644 --- a/go/logic/migrator.go +++ b/go/logic/migrator.go @@ -526,7 +526,7 @@ func (this *Migrator) cutOver() (err error) { heartbeatLag := this.migrationContext.TimeSinceLastHeartbeatOnChangelog() maxLagMillisecondsThrottleThreshold := atomic.LoadInt64(&this.migrationContext.MaxLagMillisecondsThrottleThreshold) if heartbeatLag > time.Duration(maxLagMillisecondsThrottleThreshold)*time.Millisecond { - this.migrationContext.Log.Infof("current HeartbeatLag (%.2fs) is too high, it needs to be less than --max-lag-millis (%.2fs) to continue", heartbeatLag.Seconds(), (time.Duration(maxLagMillisecondsThrottleThreshold) * time.Millisecond).Seconds()) + this.migrationContext.Log.Debugf("current HeartbeatLag (%.2fs) is too high, it needs to be less than --max-lag-millis (%.2fs) to continue", heartbeatLag.Seconds(), (time.Duration(maxLagMillisecondsThrottleThreshold) * time.Millisecond).Seconds()) return true, nil } else { return false, nil