Fixed recovery unit tests

This commit is contained in:
Manu Mtz.-Almeida
2016-01-26 19:28:41 +01:00
parent ffb5c0412a
commit 1183c1ca8f
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ func RecoveryWithWriter(out io.Writer) HandlerFunc {
if logger != nil {
stack := stack(3)
httprequest, _ := httputil.DumpRequest(c.Request, false)
logger.Printf("[Recovery] panic recovered:\n%s\n%s\n%s %s", string(httprequest), err, stack, reset)
logger.Printf("[Recovery] panic recovered:\n%s\n%s\n%s%s", string(httprequest), err, stack, reset)
}
c.AbortWithStatus(500)
}