Skip to content

Commit

Permalink
Do not enable color because it appends non-readable characters to the…
Browse files Browse the repository at this point in the history
… log file.
  • Loading branch information
fcyu committed Mar 20, 2024
1 parent 1b9bf23 commit 5ac318f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ func init() {
fmt := new(logrus.TextFormatter)
fmt.TimestampFormat = "15:04:05"
fmt.FullTimestamp = true
fmt.DisableColors = false
fmt.DisableColors = true

if runtime.GOOS == sys.Windows() {
fmt.ForceColors = true
fmt.DisableColors = true
logrus.SetOutput(colorable.NewColorableStdout())
}

Expand Down

0 comments on commit 5ac318f

Please sign in to comment.