diff options
Diffstat (limited to 'internal/sshd/connection.go')
-rw-r--r-- | internal/sshd/connection.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/sshd/connection.go b/internal/sshd/connection.go index 0e0da93..1d91a6c 100644 --- a/internal/sshd/connection.go +++ b/internal/sshd/connection.go @@ -54,7 +54,7 @@ func (c *connection) handle(ctx context.Context, chans <-chan ssh.NewChannel, ha // Prevent a panic in a single session from taking out the whole server defer func() { if err := recover(); err != nil { - log.WithFields(log.Fields{"recovered_error": err}).Warnf("panic handling session from %s", c.remoteAddr) + log.WithContextFields(ctx, log.Fields{"recovered_error": err, "address": c.remoteAddr}).Warn("panic handling session") } }() |