Merge pull request #107 from qbit/no_color_trace
Remove trace lines about NO_COLOR.
This commit is contained in:
commit
e1d5da5bd9
1 changed files with 0 additions and 2 deletions
|
@ -22,14 +22,12 @@ func main() {
|
||||||
colors = true
|
colors = true
|
||||||
default:
|
default:
|
||||||
// no color, return text as is.
|
// no color, return text as is.
|
||||||
log.Trace().Msg("Colors are not supported, disabling")
|
|
||||||
colors = false
|
colors = false
|
||||||
}
|
}
|
||||||
|
|
||||||
// Adhere to no-color.org manifesto of allowing users to
|
// Adhere to no-color.org manifesto of allowing users to
|
||||||
// turn off color in cli/services
|
// turn off color in cli/services
|
||||||
if _, noColorIsSet := os.LookupEnv("NO_COLOR"); noColorIsSet {
|
if _, noColorIsSet := os.LookupEnv("NO_COLOR"); noColorIsSet {
|
||||||
log.Trace().Msg("NO_COLOR is set, disabling colors")
|
|
||||||
colors = false
|
colors = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue