mirror of
https://github.com/zrepl/zrepl.git
synced 2025-01-21 21:59:11 +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
|
// TODO optimize
|
||||||
ret = l
|
ret = l
|
||||||
for field, value := range fields {
|
for field, value := range fields {
|
||||||
ret = l.WithField(field, value)
|
ret = ret.WithField(field, value)
|
||||||
}
|
}
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user