chore: don't force output color in log

but you can set `CLICOLOR_FORCE=1` environment variable
This commit is contained in:
wwqgtxx 2023-12-09 10:53:19 +08:00
parent c5d1e20a64
commit 9729c2e440

View file

@ -19,9 +19,9 @@ func init() {
log.SetOutput(os.Stdout) log.SetOutput(os.Stdout)
log.SetLevel(log.DebugLevel) log.SetLevel(log.DebugLevel)
log.SetFormatter(&log.TextFormatter{ log.SetFormatter(&log.TextFormatter{
FullTimestamp: true, FullTimestamp: true,
TimestampFormat: "2006-01-02T15:04:05.999999999Z07:00", TimestampFormat: "2006-01-02T15:04:05.999999999Z07:00",
ForceColors: true, EnvironmentOverrideColors: true,
}) })
} }