Skip to content

Commit

Permalink
Fix V()
Browse files Browse the repository at this point in the history
  • Loading branch information
etabak committed Apr 13, 2020
1 parent 22ddada commit d1b6d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion klog.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ type Verbose bool
func V(level Level) Verbose {
currentLevel := int(logrus.GetLevel())
newLevel := int(level)
return Verbose(newLevel > currentLevel)
return Verbose(newLevel < currentLevel)
}

// Info is equivalent to the global Info function, guarded by the value of v.
Expand Down

0 comments on commit d1b6d7f

Please sign in to comment.