1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-11-24 08:02:32 +02:00

copy fields in helper (#1281)

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Vasiliy Tolstov 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 { func (h *Helper) WithFields(fields map[string]interface{}) *Helper {
return &Helper{h.Logger.Fields(fields)} return &Helper{h.Logger.Fields(copyFields(fields))}
} }