From 569ef501bd01de620d80098fd680ff91b2ebe459 Mon Sep 17 00:00:00 2001 From: Adam Van Ymeren Date: Thu, 18 Jul 2024 11:41:38 -0700 Subject: [PATCH] keysharing: Add user_id to room key request logs --- crypto/keysharing.go | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/keysharing.go b/crypto/keysharing.go index f4407cbb..de75cbcc 100644 --- a/crypto/keysharing.go +++ b/crypto/keysharing.go @@ -283,6 +283,7 @@ func (mach *OlmMachine) defaultAllowKeyShare(ctx context.Context, device *id.Dev func (mach *OlmMachine) HandleRoomKeyRequest(ctx context.Context, sender id.UserID, content *event.RoomKeyRequestEventContent) { log := zerolog.Ctx(ctx).With(). Str("request_id", content.RequestID). + Str("user_id", sender.String()). Str("device_id", content.RequestingDeviceID.String()). Str("room_id", content.Body.RoomID.String()). Str("session_id", content.Body.SessionID.String()).