Browse Source

The Recovery() middleware should not print the errors (only panics)

Manu Mtz-Almeida 11 years ago
parent
commit
fa80b047f9
1 changed files with 0 additions and 3 deletions
  1. 0 3
      recovery.go

+ 0 - 3
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)