Tray: Add button to open logs

This commit is contained in:
Harvey Tindall
2021-05-25 20:16:42 +01:00
parent 62c29d55cc
commit 7035a3fe9c
4 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -723,7 +723,7 @@ func logOutput() func() {
old := os.Stdout
log.Printf("Logging to \"%s\"", logPath)
f, err := os.OpenFile(logPath, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0666)
if err == nil {
if err != nil {
return func() {}
}
writer := io.MultiWriter(old, f)