Permalink
Browse files

Remove obsolete function

  • Loading branch information...
1 parent 79a2f31 commit a7e423efd7d3a07244037a2350f7adf8de8cab3e Dmitriy Kalinin and Pieter Noordhuis committed with Pieter Noordhuis and Tim Labeeuw Mar 7, 2013
Showing with 1 addition and 5 deletions.
  1. +1 −5 logger.go
View
@@ -21,16 +21,12 @@ type BaseLogger struct {
level LogLevel
}
-func (l *BaseLogger) active(x LogLevel) bool {
- return l.level.Priority >= x.Priority
-}
-
func (l *BaseLogger) Level() LogLevel {
return l.level
}
func (l *BaseLogger) Log(x LogLevel, m string, d map[string]interface{}) {
- if !l.active(x) {
+ if l.Level().Priority < x.Priority {
return
}

0 comments on commit a7e423e

Please sign in to comment.