Enable stack traces for panics

This commit is contained in:
Jacob Gunther
2023-03-03 09:42:14 -06:00
parent bbc929f438
commit 1897e7df71

View File

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