mirror of
https://github.com/tuxdotrs/trok.git
synced 2025-07-06 11:56:34 +05:30
misc: log connection remote addr
This commit is contained in:
@ -53,6 +53,7 @@ func (t *Trok) ControlConnHandler(conn net.Conn) {
|
|||||||
log.Warn().Msgf("connection timed out: %s", conn.RemoteAddr())
|
log.Warn().Msgf("connection timed out: %s", conn.RemoteAddr())
|
||||||
} else {
|
} else {
|
||||||
log.Logger.Info().Msgf("connection closed: %s", err)
|
log.Logger.Info().Msgf("connection closed: %s", err)
|
||||||
|
log.Logger.Info().Msgf("connection closed: %s", conn.RemoteAddr())
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user