From 1897e7df715620a34eac6fdbe3fbd3d1b72dd9ad Mon Sep 17 00:00:00 2001 From: Jacob Gunther Date: Fri, 3 Mar 2023 09:42:14 -0600 Subject: [PATCH] Enable stack traces for panics --- src/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.go b/src/main.go index 92e1a7c..7bfcd76 100644 --- a/src/main.go +++ b/src/main.go @@ -43,7 +43,9 @@ func init() { log.Println("Successfully connected to Redis") } - app.Use(recover.New()) + app.Use(recover.New(recover.Config{ + EnableStackTrace: true, + })) if config.Environment == "development" { app.Use(cors.New(cors.Config{