mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-02 00:11:56 +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")
|
).Named("conn")
|
||||||
|
|
||||||
if purpose == connPurposeClient {
|
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{
|
return &wrapperConn{
|
||||||
|
|||||||
Reference in New Issue
Block a user