From d75cf039e23abcfd328f4c6ff27dfcbf44a542ed Mon Sep 17 00:00:00 2001 From: Malte E Date: Fri, 9 Aug 2024 22:30:12 +0200 Subject: [PATCH] remove global log --- pkg/connector/handlematrix.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/connector/handlematrix.go b/pkg/connector/handlematrix.go index 2c4cb8fe..2b8ca269 100644 --- a/pkg/connector/handlematrix.go +++ b/pkg/connector/handlematrix.go @@ -25,7 +25,6 @@ import ( "github.com/google/uuid" "github.com/rs/zerolog" - "github.com/rs/zerolog/log" "go.mau.fi/util/variationselector" "google.golang.org/protobuf/proto" "maunium.net/go/mautrix/bridgev2" @@ -380,6 +379,10 @@ func (s *SignalClient) HandleMatrixMembership(ctx context.Context, msg *bridgev2 targetIntent = ghost.Intent } } + log := zerolog.Ctx(ctx).With(). + Str("From Membership", string(msg.Type.From)). + Str("To Membership", string(msg.Type.To)). + Logger() gc := &signalmeow.GroupChange{} role := signalmeow.GroupMember_DEFAULT if msg.Type.To == event.MembershipInvite || msg.Type == bridgev2.AcceptKnock {