Skip to content

Commit a2e6c76

Browse files
authored
feat(log): enable override coloring based on CLICOLOR and CLICOLOR_FORCE (#2657)
1 parent f5b92e1 commit a2e6c76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/logutils/stderr_log.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ func NewStderrLog(name string) *StderrLog {
3838

3939
sl.logger.Out = StdErr
4040
formatter := &logrus.TextFormatter{
41-
DisableTimestamp: true, // `INFO[0007] msg` -> `INFO msg`
41+
DisableTimestamp: true, // `INFO[0007] msg` -> `INFO msg`
42+
EnvironmentOverrideColors: true,
4243
}
4344
if os.Getenv("LOG_TIMESTAMP") == "1" {
4445
formatter.DisableTimestamp = false

0 commit comments

Comments
 (0)