Skip to content

Commit

Permalink
Remove incorrect err in log
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Nov 12, 2023
1 parent 37d5493 commit da5a51a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/decryptmegolm.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (mach *OlmMachine) DecryptMegolmEvent(ctx context.Context, evt *event.Event
trustLevel = id.TrustStateUnknownDevice
} else if len(sess.ForwardingChains) == 0 || (len(sess.ForwardingChains) == 1 && sess.ForwardingChains[0] == sess.SenderKey.String()) {
if device == nil {
log.Debug().Err(err).
log.Debug().
Str("session_sender_key", sess.SenderKey.String()).
Msg("Couldn't resolve trust level of session: sent by unknown device")
trustLevel = id.TrustStateUnknownDevice
Expand Down

0 comments on commit da5a51a

Please sign in to comment.