Improves error log formatting
This commit is contained in:
+1
-1
@@ -83,7 +83,7 @@ func Recovery() HandlerFunc {
|
||||
return func(c *Context) {
|
||||
defer func() {
|
||||
if len(c.Errors) > 0 {
|
||||
log.Println(c.Errors)
|
||||
log.Println(c.Errors.String())
|
||||
}
|
||||
if err := recover(); err != nil {
|
||||
stack := stack(3)
|
||||
|
||||
Reference in New Issue
Block a user