From 081e1a6b068b95a5d86b2c2945c2bdb80cc4ac54 Mon Sep 17 00:00:00 2001 From: congqixia Date: Fri, 17 Dec 2021 11:03:29 +0800 Subject: [PATCH] Fix log string concat in session_util.go (#13552) Signed-off-by: Congqi Xia --- internal/util/sessionutil/session_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/util/sessionutil/session_util.go b/internal/util/sessionutil/session_util.go index 16f9e65391..e2f44fad8d 100644 --- a/internal/util/sessionutil/session_util.go +++ b/internal/util/sessionutil/session_util.go @@ -197,7 +197,7 @@ func (s *Session) getServerIDWithKey(key string, retryTimes uint) (int64, error) // it is false. Otherwise, set it to true. func (s *Session) registerService() (<-chan *clientv3.LeaseKeepAliveResponse, error) { var ch <-chan *clientv3.LeaseKeepAliveResponse - log.Debug("Session Register Begin " + s.ServerName) + log.Debug("Session Register Begin", zap.String("ServerName", s.ServerName)) registerFn := func() error { resp, err := s.etcdCli.Grant(s.ctx, DefaultTTL) if err != nil {