mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 04:17:55 +08:00
feat(log): print traceback when panics occur (#2166)
Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
@@ -14,7 +14,6 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/gorilla/handlers"
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/zitadel/oidc/pkg/client/rp"
|
||||
|
||||
@@ -117,9 +116,8 @@ func (c *Controller) Run() error {
|
||||
|
||||
engine.Use(
|
||||
SessionLogger(c),
|
||||
handlers.RecoveryHandler(
|
||||
handlers.PrintRecoveryStack(true),
|
||||
))
|
||||
RecoveryHandler(c.Log),
|
||||
)
|
||||
|
||||
if c.Audit != nil {
|
||||
engine.Use(SessionAuditLogger(c.Audit))
|
||||
|
||||
Reference in New Issue
Block a user