mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 09:37:02 +00:00
log: disable color output on windows, closes #93
This commit is contained in:
@@ -181,7 +181,7 @@ func openLog(level string, logfile string, json bool) (close func(), err error)
|
|||||||
}
|
}
|
||||||
close = func() {}
|
close = func() {}
|
||||||
var w io.Writer
|
var w io.Writer
|
||||||
color := true
|
color := runtime.GOOS != "windows"
|
||||||
switch logfile {
|
switch logfile {
|
||||||
case "stderr":
|
case "stderr":
|
||||||
w = os.Stderr
|
w = os.Stderr
|
||||||
|
|||||||
Reference in New Issue
Block a user