This commit is contained in:
Thom Seddon
2019-04-18 16:34:05 +01:00
parent 6968f6181b
commit 2074bc7727

View File

@ -167,7 +167,7 @@ func (s *Server) AuthCallbackHandler() http.HandlerFunc {
func (s *Server) logger(r *http.Request, msg string) *logrus.Entry {
// Create logger
logger := log.WithFields(logrus.Fields{
"RemoteAddr": r.RemoteAddr,
"SourceIP": r.Header.Get("X-Forwarded-For"),
})
// Log request