mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-23 10:02:10 +08:00
Fix stack function not being called with params (merge conflict) (refs #1259)
This commit is contained in:
parent
e7078e9dc0
commit
97c4c98a45
@ -56,7 +56,7 @@ func RecoveryWithWriter(out io.Writer) HandlerFunc {
|
|||||||
logger.Printf("%s\n%s%s", err, string(httprequest), reset)
|
logger.Printf("%s\n%s%s", err, string(httprequest), reset)
|
||||||
} else {
|
} else {
|
||||||
logger.Printf("[Recovery] %s panic recovered:\n%s\n%s\n%s%s",
|
logger.Printf("[Recovery] %s panic recovered:\n%s\n%s\n%s%s",
|
||||||
timeFormat(time.Now()), string(httprequest), err, stack, reset)
|
timeFormat(time.Now()), string(httprequest), err, stack(3), reset)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user