Skip to content

Commit

Permalink
don't print if not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
ineiti committed Feb 15, 2017
1 parent c89a539 commit 7baa94d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions log/lvl.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ func fg(c ct.Color, bright bool) {
// or
// Lvl1 -> lvld -> lvl
func lvlf(l int, f string, args ...interface{}) {
if l > debugVisible {
return
}
lvl(l, 3, fmt.Sprintf(f, args...))
}
func lvld(l int, args ...interface{}) {
Expand Down

0 comments on commit 7baa94d

Please sign in to comment.