Archived
Timestamp the panic log
This commit is contained in:
1 parent
50a4170541
commit
5537d53f9a
1 file changed
+1
@@ -126,6 +126,7 @@ func copyStderr(stderr io.ReadCloser) {
|
|||||||
l.Warnf("Panic detected, writing to \"%s\"", panicFd.Name())
|
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")
|
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()
|
stdoutMut.Lock()
|
||||||
for _, line := range stdoutFirstLines {
|
for _, line := range stdoutFirstLines {
|
||||||
panicFd.WriteString(line)
|
panicFd.WriteString(line)
|
||||||
|
|||||||
Reference in new issue
Block a user