mirror of
https://github.com/project-zot/zot.git
synced 2026-06-15 20:07:55 +08: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:
committed by
GitHub
parent
2a6bf66cb2
commit
1c756b4db9
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user