0
Fork 0
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:
Ramkumar Chinchani 2024-01-11 13:56:50 -08:00 committed by GitHub
parent 2a6bf66cb2
commit 1c756b4db9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))