logger.Logger: fix WithFields() dropping all but last field

This commit is contained in:
Christian Schwarz 2017-12-30 13:00:23 +01:00
parent a622ef1487
commit 710bf79f7e

View File

@ -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
}