Skip to content

Commit

Permalink
Merge pull request #74 from unistack-org/master
Browse files Browse the repository at this point in the history
logger: fix Fields
  • Loading branch information
vtolstov authored Jan 19, 2022
2 parents 8e5e216 + 1f3834e commit 5218226
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions logger/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ func (l *defaultLogger) Fields(fields ...interface{}) Logger {
} else if len(fields)%2 != 0 {
fields = fields[:len(fields)-1]
}
nl.logFunc = l.logFunc
nl.logfFunc = l.logfFunc
nl.opts.Fields = append(nl.opts.Fields, fields...)
return nl
}
Expand Down

0 comments on commit 5218226

Please sign in to comment.