From 9729c2e440f5a288eaea4d364786d0ebddf6d054 Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Sat, 9 Dec 2023 10:53:19 +0800 Subject: [PATCH] chore: don't force output color in log but you can set `CLICOLOR_FORCE=1` environment variable --- log/log.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/log/log.go b/log/log.go index d0c9b330..6f565e7c 100644 --- a/log/log.go +++ b/log/log.go @@ -19,9 +19,9 @@ func init() { log.SetOutput(os.Stdout) log.SetLevel(log.DebugLevel) log.SetFormatter(&log.TextFormatter{ - FullTimestamp: true, - TimestampFormat: "2006-01-02T15:04:05.999999999Z07:00", - ForceColors: true, + FullTimestamp: true, + TimestampFormat: "2006-01-02T15:04:05.999999999Z07:00", + EnvironmentOverrideColors: true, }) }