diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index 4e7bae21..563bafaa 100644 --- a/cmd/syncthing/main.go +++ b/cmd/syncthing/main.go @@ -23,6 +23,7 @@ import ( "path/filepath" "regexp" "runtime" + "runtime/debug" "runtime/pprof" "sort" "strconv" @@ -280,6 +281,9 @@ func parseCommandLineOptions() RuntimeOptions { } func main() { + // We want all (our) goroutines in panic traces. + debug.SetTraceback("all") + options := parseCommandLineOptions() l.SetFlags(options.logFlags)