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:
parent
9200c70202
commit
b555269b1b
@ -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))}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user