Merge pull request #949 from pires/bugfix/klogv2_withfields

log: fix klogv2.WithField(s)
This commit is contained in:
Brian Goff
2021-01-20 09:44:10 -08:00
committed by GitHub

View File

@@ -136,7 +136,7 @@ func (l *adapter) WithFields(fields log.Fields) log.Logger {
newFields[k] = v
}
return New(fields)
return New(newFields)
}
// WithError adds an error to the log entry