1
0
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:
James Hillyerd
2018-05-05 09:57:01 -07:00
parent 568474da32
commit 62fa52f42c

View File

@@ -181,7 +181,7 @@ func openLog(level string, logfile string, json bool) (close func(), err error)
}
close = func() {}
var w io.Writer
color := true
color := runtime.GOOS != "windows"
switch logfile {
case "stderr":
w = os.Stderr