Logs: Reduce http recover log level to debug

This commit is contained in:
Michael Mayer 2020-12-15 17:43:05 +01:00
parent 83307c67d3
commit 6b38a06bf5

View file

@ -25,7 +25,7 @@ func Recovery() gin.HandlerFunc {
if err := recover(); err != nil {
stack := stack(3)
req, _ := httputil.DumpRequest(c.Request, false)
log.Errorf("http: %s (%s)\n%s", err, string(req), stack)
log.Debugf("http: %s (%s)\n%s", err, string(req), stack)
c.AbortWithStatus(http.StatusInternalServerError)
}
}()