fix logging issues

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2021-03-30 15:40:24 +03:00
parent 23bdeaae57
commit 6aa8606cab

4
tcp.go
View File

@ -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)