From 34b365380342a11f0e8264e854c965c5e2e0ed8c Mon Sep 17 00:00:00 2001 From: Sam Wedgwood Date: Tue, 1 Aug 2023 15:31:03 +0100 Subject: [PATCH] add log line for missing sender ID in SendRedaction --- clientapi/routing/redaction.go | 1 + 1 file changed, 1 insertion(+) diff --git a/clientapi/routing/redaction.go b/clientapi/routing/redaction.go index c7af20e29..230c96d28 100644 --- a/clientapi/routing/redaction.go +++ b/clientapi/routing/redaction.go @@ -77,6 +77,7 @@ func SendRedaction( // if user is member of room, and sender ID is nil, then this user doesn't have a pseudo ID for some reason, // which is unexpected. if senderID == nil { + util.GetLogger(req.Context()).WithField("userID", *deviceUserID).WithField("roomID", roomID).Error("missing sender ID for user, despite having membership") return util.JSONResponse{ Code: http.StatusInternalServerError, JSON: spec.Unknown("internal server error"),