mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 21:14:01 +03:00
Add more granular names to conn loggers
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user