Skip to content

Commit 5ac318f

Browse files
committed
Do not enable color because it appends non-readable characters to the log file.
1 parent 1b9bf23 commit 5ac318f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/root.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ func init() {
4343
fmt := new(logrus.TextFormatter)
4444
fmt.TimestampFormat = "15:04:05"
4545
fmt.FullTimestamp = true
46-
fmt.DisableColors = false
46+
fmt.DisableColors = true
4747

4848
if runtime.GOOS == sys.Windows() {
49-
fmt.ForceColors = true
49+
fmt.DisableColors = true
5050
logrus.SetOutput(colorable.NewColorableStdout())
5151
}
5252

0 commit comments

Comments
 (0)