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
+3 -2
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))