SetTraceback("all")
This commit is contained in:
parent
f7071fa59e
commit
9c3fddd7c6
1 changed files with 4 additions and 0 deletions
4
main.go
4
main.go
|
@ -30,6 +30,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
"runtime/debug"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
@ -49,6 +50,9 @@ var hasPortRE = regexp.MustCompile(`:\d+$`)
|
||||||
var configFilePath = flag.String("config", "jrouter.yaml", "Path to configuration file to use")
|
var configFilePath = flag.String("config", "jrouter.yaml", "Path to configuration file to use")
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
// For some reason it occasionally panics and the panics have no traceback?
|
||||||
|
debug.SetTraceback("all")
|
||||||
|
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
log.Println("jrouter")
|
log.Println("jrouter")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue