From 88aba0cede55a6cf64f98ad55e9b9091c528b37e Mon Sep 17 00:00:00 2001 From: ko_oler <kooler89@gmail.com> Date: Fri, 9 Feb 2024 12:38:20 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=B2?= =?UTF-8?q?=20=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D1=8E=20ToMap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- log/log.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/log/log.go b/log/log.go index e3a9f110..d21ddbca 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 -- GitLab