log: move accidental log message

This commit is contained in:
Harvey Tindall 2021-06-24 02:22:44 +01:00
parent fc0e86ffd8
commit 306ede47d6
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2
1 changed files with 1 additions and 1 deletions

2
log.go
View File

@ -16,11 +16,11 @@ var lineCache = linecache.NewLineCache(100)
func logOutput() (closeFunc func()) {
old := os.Stdout
log.Printf("Logging to \"%s\"", logPath)
writers := []io.Writer{old, colorStripper{lineCache}}
wExit := make(chan bool)
r, w, _ := os.Pipe()
if TRAY {
log.Printf("Logging to \"%s\"", logPath)
f, err := os.OpenFile(logPath, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0666)
if err != nil {
closeFunc = func() {}