Add more granular names to conn loggers

This commit is contained in:
9seconds
2019-11-12 14:24:27 +03:00
parent 196ef3d449
commit 646294b6ba
+3 -1
View File
@@ -106,7 +106,9 @@ func newConn(parent net.Conn,
).Named("conn")
if purpose == connPurposeClient {
logger = logger.With("connection_id", connID.String())
logger = logger.Named("client").With("connection_id", connID.String())
} else {
logger = logger.Named("telegram")
}
return &wrapperConn{