diff --git a/log/log.go b/log/log.go index e3a9f110bb8be6f7d85a9494a493f7090c3b6aac..d21ddbcaaa262c4c16e95a35cd098f77ea4a53cb 100644 --- a/log/log.go +++ b/log/log.go @@ -1,7 +1,6 @@ package log import ( - "maps" "time" "git.perx.ru/perxis/perxis-go/id" @@ -112,10 +111,11 @@ func (e *Entry) ToMap() map[string]any { } if e.ObjectID != nil { res["object_id"] = e.ObjectID.String() - maps.Copy(res, e.ObjectID.ToMap()) + res["object"] = e.ObjectID.ToMap() } if e.CallerID != nil { res["caller_id"] = e.CallerID.String() + res["caller"] = e.CallerID.ToMap() } if e.Attr != nil { res["attr"] = e.Attr