From fa80b047f903350600fc1cc682a89519306f31b6 Mon Sep 17 00:00:00 2001 From: Manu Mtz-Almeida Date: Fri, 4 Jul 2014 04:32:43 +0200 Subject: [PATCH] The Recovery() middleware should not print the errors (only panics) --- recovery.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/recovery.go b/recovery.go index 15066c8e..47165227 100644 --- a/recovery.go +++ b/recovery.go @@ -82,9 +82,6 @@ func function(pc uintptr) []byte { func Recovery() HandlerFunc { return func(c *Context) { defer func() { - if len(c.Errors) > 0 { - log.Println(c.Errors.String()) - } if err := recover(); err != nil { stack := stack(3) log.Printf("PANIC: %s\n%s", err, stack)