From 5537d53f9a176598cfcd0babba7f7fffabcbef74 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Wed, 10 Sep 2014 08:25:56 +0200 Subject: [PATCH] Timestamp the panic log --- cmd/syncthing/monitor.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/syncthing/monitor.go b/cmd/syncthing/monitor.go index 4392fa23..8bdb362c 100644 --- a/cmd/syncthing/monitor.go +++ b/cmd/syncthing/monitor.go @@ -126,6 +126,7 @@ func copyStderr(stderr io.ReadCloser) { l.Warnf("Panic detected, writing to \"%s\"", panicFd.Name()) l.Warnln("Please create an issue at https://github.com/syncting/syncthing/issues/ with the panic log attached") + panicFd.WriteString("Panic at " + time.Now().Format(time.RFC1123) + "\n") stdoutMut.Lock() for _, line := range stdoutFirstLines { panicFd.WriteString(line)