Logs: Reduce http recover log level to debug
This commit is contained in:
parent
83307c67d3
commit
6b38a06bf5
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}()
|
||||
|
|
Loading…
Reference in a new issue