copy fields in helper (#1281)
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
9200c70202
commit
b555269b1b
@ -61,5 +61,5 @@ func (h *Helper) WithError(err error) *Helper {
|
||||
}
|
||||
|
||||
func (h *Helper) WithFields(fields map[string]interface{}) *Helper {
|
||||
return &Helper{h.Logger.Fields(fields)}
|
||||
return &Helper{h.Logger.Fields(copyFields(fields))}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user