SetTraceback("all")

This commit is contained in:
Josh Deprez 2024-04-24 09:33:15 +10:00
parent f7071fa59e
commit 9c3fddd7c6
Signed by: josh
SSH Key Fingerprint: SHA256:zZji7w1Ilh2RuUpbQcqkLPrqmRwpiCSycbF2EfKm6Kw
1 changed files with 4 additions and 0 deletions

View File

@ -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")