mirror of
https://github.com/zrepl/zrepl.git
synced 2025-01-21 05:40:04 +01:00
logger.Logger: fix WithFields() dropping all but last field
This commit is contained in:
parent
a622ef1487
commit
710bf79f7e
@ -126,7 +126,7 @@ func (l *Logger) WithFields(fields Fields) (ret *Logger) {
|
||||
// TODO optimize
|
||||
ret = l
|
||||
for field, value := range fields {
|
||||
ret = l.WithField(field, value)
|
||||
ret = ret.WithField(field, value)
|
||||
}
|
||||
return ret
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user