From 9c3fddd7c658c311a2fa4f4e79948e6305260da1 Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Wed, 24 Apr 2024 09:33:15 +1000 Subject: [PATCH] SetTraceback("all") --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index 8cb908a..e55337a 100644 --- a/main.go +++ b/main.go @@ -30,6 +30,7 @@ import ( "os" "os/signal" "regexp" + "runtime/debug" "strings" "sync" "time" @@ -49,6 +50,9 @@ var hasPortRE = regexp.MustCompile(`:\d+$`) var configFilePath = flag.String("config", "jrouter.yaml", "Path to configuration file to use") func main() { + // For some reason it occasionally panics and the panics have no traceback? + debug.SetTraceback("all") + flag.Parse() log.Println("jrouter")