Improves error log formatting

This commit is contained in:
Manu Mtz-Almeida
2014-07-02 02:31:11 +02:00
parent 4b62957d85
commit f72fcdf5ba
3 changed files with 20 additions and 7 deletions
+1 -1
View File
@@ -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)