diff options
Diffstat (limited to 'middleware/logging.go')
-rw-r--r-- | middleware/logging.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware/logging.go b/middleware/logging.go index 2e78ea8..fdf1ce3 100644 --- a/middleware/logging.go +++ b/middleware/logging.go @@ -14,7 +14,7 @@ import ( // Logging logs the HTTP request. func (m *Middleware) Logging(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - logger.Debug("[HTTP] %s %s %s", request.RealIP(r), r.Method, r.RequestURI) + logger.Debug("[HTTP] %s %s %s", request.ClientIP(r), r.Method, r.RequestURI) next.ServeHTTP(w, r) }) } |