Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Commit

Permalink
Remove obsolete function
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Kalinin and Pieter Noordhuis authored and Pieter Noordhuis and Tim Labeeuw committed Mar 7, 2013
1 parent 79a2f31 commit a7e423e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions logger.go
Expand Up @@ -21,16 +21,12 @@ type BaseLogger struct {
level LogLevel level LogLevel
} }


func (l *BaseLogger) active(x LogLevel) bool {
return l.level.Priority >= x.Priority
}

func (l *BaseLogger) Level() LogLevel { func (l *BaseLogger) Level() LogLevel {
return l.level return l.level
} }


func (l *BaseLogger) Log(x LogLevel, m string, d map[string]interface{}) { func (l *BaseLogger) Log(x LogLevel, m string, d map[string]interface{}) {
if !l.active(x) { if l.Level().Priority < x.Priority {
return return
} }


Expand Down

0 comments on commit a7e423e

Please sign in to comment.