Skip to content

Commit

Permalink
feat(log): enable override coloring based on CLICOLOR and CLICOLOR_FO…
Browse files Browse the repository at this point in the history
…RCE (#2657)
  • Loading branch information
ttys3 committed Apr 5, 2022
1 parent f5b92e1 commit a2e6c76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/logutils/stderr_log.go
Expand Up @@ -38,7 +38,8 @@ func NewStderrLog(name string) *StderrLog {

sl.logger.Out = StdErr
formatter := &logrus.TextFormatter{
DisableTimestamp: true, // `INFO[0007] msg` -> `INFO msg`
DisableTimestamp: true, // `INFO[0007] msg` -> `INFO msg`
EnvironmentOverrideColors: true,
}
if os.Getenv("LOG_TIMESTAMP") == "1" {
formatter.DisableTimestamp = false
Expand Down

0 comments on commit a2e6c76

Please sign in to comment.