From 8a71bd36fdccb616b5bbbe4f028151579364d0ef Mon Sep 17 00:00:00 2001 From: suetin Date: Fri, 26 Jul 2024 17:56:10 +0300 Subject: [PATCH] fix Infof message time.duration->seconds --- internal/app/async.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/app/async.go b/internal/app/async.go index 48cd183b..68893831 100644 --- a/internal/app/async.go +++ b/internal/app/async.go @@ -21,7 +21,7 @@ func (app *App) CheckAsyncSwitchAllowed(node *mysql.Node, switchover *Switchover return false } if time.Duration(delay)*time.Second < app.config.AsyncAllowedLag { - app.logger.Infof("async allowed lag is %d seconds and current lag on host %s is %d, so we don't wait for catch up any more", + app.logger.Infof("async allowed lag is %f seconds and current lag on host %s is %d, so we don't wait for catch up any more", app.config.AsyncAllowedLag.Seconds(), node.Host(), delay) return true }