mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
fix: enable panic backtraces (#2150)
We expect panics in the server/datapath to be few and far between. So the backtraces are more valuable now. Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
parent
2a6bf66cb2
commit
1c756b4db9
1 changed files with 3 additions and 2 deletions
|
@ -117,8 +117,9 @@ func (c *Controller) Run() error {
|
|||
|
||||
engine.Use(
|
||||
SessionLogger(c),
|
||||
handlers.RecoveryHandler(handlers.RecoveryLogger(c.Log),
|
||||
handlers.PrintRecoveryStack(false)))
|
||||
handlers.RecoveryHandler(
|
||||
handlers.PrintRecoveryStack(true),
|
||||
))
|
||||
|
||||
if c.Audit != nil {
|
||||
engine.Use(SessionAuditLogger(c.Audit))
|
||||
|
|
Loading…
Reference in a new issue