Browse Source

Fix some logs

Tulir Asokan 3 years ago
parent
commit
86cb0f221e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      portal.go

+ 2 - 2
portal.go

@@ -2190,11 +2190,11 @@ func (portal *Portal) HandleMatrixRedaction(sender *User, evt *event.Event) {
 
 
 	msg := portal.bridge.DB.Message.GetByMXID(evt.Redacts)
 	msg := portal.bridge.DB.Message.GetByMXID(evt.Redacts)
 	if msg == nil {
 	if msg == nil {
-		portal.log.Debugfln("Ignoring redaction %s of unknown event by %s", msg, senderLogIdentifier)
+		portal.log.Debugfln("Ignoring redaction %s of unknown event by %s", evt.ID, senderLogIdentifier)
 		portal.bridge.AS.SendErrorMessageSendCheckpoint(evt, appservice.StepRemote, errors.New("target not found"), true, 0)
 		portal.bridge.AS.SendErrorMessageSendCheckpoint(evt, appservice.StepRemote, errors.New("target not found"), true, 0)
 		return
 		return
 	} else if msg.IsFakeJID() {
 	} else if msg.IsFakeJID() {
-		portal.log.Debugfln("Ignoring redaction %s of fake event by %s", msg, senderLogIdentifier)
+		portal.log.Debugfln("Ignoring redaction %s of fake event by %s", evt.ID, senderLogIdentifier)
 		portal.bridge.AS.SendErrorMessageSendCheckpoint(evt, appservice.StepRemote, errors.New("target is a fake event"), true, 0)
 		portal.bridge.AS.SendErrorMessageSendCheckpoint(evt, appservice.StepRemote, errors.New("target is a fake event"), true, 0)
 		return
 		return
 	} else if msg.Sender.User != sender.JID.User {
 	} else if msg.Sender.User != sender.JID.User {