copy fields in helper (#1281)

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2020-03-02 17:18:36 +03:00 committed by GitHub
parent 9200c70202
commit b555269b1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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