Skip to content

Commit

Permalink
Fix which config -logger-no-color is meant to change
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemailly committed Nov 22, 2023
1 parent 11d9fa0 commit 9ef0ac0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ func Main() {
os.Stderr.WriteString(log.Colors.Reset)
if *nocolor {
// Don't override the env if the flag isn't set
// (downside is if LOGGER_FORCE_COLOR is set to false, this -logger-no-color=false can't override it)
log.Config.ForceColor = !*nocolor
// (downside is if LOGGER_CONSOLE_COLOR is set to false, this -logger-no-color=false can't override it)
log.Config.ConsoleColor = false /* = !*nocolor */
}
log.SetColorMode()
nArgs = len(flag.Args())
Expand Down

0 comments on commit 9ef0ac0

Please sign in to comment.