Skip to content

Commit

Permalink
Merge pull request #107 from qbit/no_color_trace
Browse files Browse the repository at this point in the history
Remove trace lines about NO_COLOR.
  • Loading branch information
juanfont committed Sep 13, 2021
2 parents 5f818b7 + 203e6bc commit e1d5da5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/headscale/headscale.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit e1d5da5

Please sign in to comment.