mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 06:54:03 +03:00
Merge pull request #109 from 9seconds/logger-names
Add more granular names to connection 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