mirror of
https://github.com/containous/traefik.git
synced 2025-03-22 02:50:13 +03:00
Add logs when error is generated in error handler
This commit is contained in:
parent
f323df466d
commit
bacd58ed7b
@ -5,6 +5,7 @@ import (
|
||||
"net"
|
||||
"net/http"
|
||||
|
||||
"github.com/containous/traefik/log"
|
||||
"github.com/containous/traefik/middlewares"
|
||||
)
|
||||
|
||||
@ -37,4 +38,5 @@ func (eh *RecordingErrorHandler) ServeHTTP(w http.ResponseWriter, req *http.Requ
|
||||
|
||||
w.WriteHeader(statusCode)
|
||||
w.Write([]byte(http.StatusText(statusCode)))
|
||||
log.Debugf("'%d %s' caused by: %v", statusCode, http.StatusText(statusCode), err)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user