Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
  • Loading branch information
roidelapluie committed May 10, 2021
1 parent 9bf407d commit e97ece8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions promlog/log.go
Expand Up @@ -154,14 +154,14 @@ type logger struct {
mtx sync.Mutex
}

// l implements logger.Log
// Log implements logger.Log.
func (l *logger) Log(keyvals ...interface{}) error {
l.mtx.Lock()
defer l.mtx.Unlock()
return l.leveled.Log(keyvals...)
}

// SetLevel allows changing the level
// SetLevel changes the log level.
func (l *logger) SetLevel(lvl *AllowedLevel) {
l.mtx.Lock()
defer l.mtx.Unlock()
Expand Down

0 comments on commit e97ece8

Please sign in to comment.