mirror of
https://github.com/nxshock/gron.git
synced 2024-11-27 03:41:00 +05:00
Write main log to stderr too
For debug purpose
This commit is contained in:
parent
a1ed8d73a0
commit
410722bc13
8
main.go
8
main.go
@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"io"
|
||||
"os"
|
||||
"os/signal"
|
||||
"path/filepath"
|
||||
@ -34,9 +35,10 @@ func init() {
|
||||
HideKeys: true,
|
||||
NoColors: true,
|
||||
TrimMessages: true})
|
||||
//multiWriter := io.MultiWriter(os.Stderr, logFile)
|
||||
//log.SetOutput(multiWriter)
|
||||
log.SetOutput(mainLogFile)
|
||||
|
||||
multiWriter := io.MultiWriter(os.Stderr, mainLogFile)
|
||||
log.SetOutput(multiWriter)
|
||||
|
||||
log.SetLevel(log.InfoLevel)
|
||||
|
||||
initTemplate()
|
||||
|
Loading…
Reference in New Issue
Block a user