Skip to content

Commit

Permalink
remove global log
Browse files Browse the repository at this point in the history
  • Loading branch information
maltee1 committed Aug 9, 2024
1 parent 0f3afe0 commit d75cf03
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/connector/handlematrix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit d75cf03

Please sign in to comment.