Skip to content

Commit

Permalink
Add remote addr in error handler log
Browse files Browse the repository at this point in the history
  • Loading branch information
sapmli authored and emersion committed Apr 23, 2024
1 parent 5e727ac commit 52a8bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (s *Server) Serve(l net.Listener) error {

err := s.handleConn(newConn(c, s))
if err != nil {
s.ErrorLog.Printf("handler error: %s", err)
s.ErrorLog.Printf("error handling %v: %s", c.RemoteAddr(), err)
}
}()
}
Expand Down

0 comments on commit 52a8bf5

Please sign in to comment.