Merge pull request #107 from qbit/no_color_trace

Remove trace lines about NO_COLOR.
This commit is contained in:
Juan Font 2021-09-13 22:38:37 +02:00 committed by GitHub
commit e1d5da5bd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -22,14 +22,12 @@ func main() {
colors = true
default:
// no color, return text as is.
log.Trace().Msg("Colors are not supported, disabling")
colors = false
}
// Adhere to no-color.org manifesto of allowing users to
// turn off color in cli/services
if _, noColorIsSet := os.LookupEnv("NO_COLOR"); noColorIsSet {
log.Trace().Msg("NO_COLOR is set, disabling colors")
colors = false
}