fix logging issues
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
23bdeaae57
commit
6aa8606cab
4
tcp.go
4
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user