diff --git a/middlewares/logger.go b/middlewares/logger.go index 6efc5ca30..7875cd964 100644 --- a/middlewares/logger.go +++ b/middlewares/logger.go @@ -19,7 +19,7 @@ const ( ) /* -Middleware Logger writes each request and its response to the access log. +Logger writes each request and its response to the access log. It gets some information from the logInfoResponseWriter set up by previous middleware. */ type Logger struct { diff --git a/middlewares/saveBackend.go b/middlewares/saveBackend.go index 0a7b28e32..db7e1307d 100644 --- a/middlewares/saveBackend.go +++ b/middlewares/saveBackend.go @@ -4,7 +4,7 @@ import ( "net/http" ) -// Middleware saveBackend sends the backend name to the logger. +// SaveBackend sends the backend name to the logger. type SaveBackend struct { next http.Handler }