From 6aa8606cab8160c6b61695fd729fdd9ac0c04f65 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 30 Mar 2021 15:40:24 +0300 Subject: [PATCH] fix logging issues Signed-off-by: Vasiliy Tolstov --- tcp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tcp.go b/tcp.go index b4ede2e..2c7d0aa 100644 --- a/tcp.go +++ b/tcp.go @@ -460,13 +460,13 @@ func (s *tcpServer) serve(ln net.Listener, h Handler) { continue } if config.Logger.V(logger.ErrorLevel) { - config.Logger.Error(config.Context, "tcp: Accept error: %v", err) + config.Logger.Errorf(config.Context, "tcp: Accept error: %v", err) } return } if err != nil { - config.Logger.Error(config.Context, "tcp: accept err: %v", err) + config.Logger.Errorf(config.Context, "tcp: accept err: %v", err) return } go h.Serve(c)