From c3e7c9aca83864bfb0b8087a8753288e21a8f142 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Thu, 27 Jan 2022 18:20:27 +0000 Subject: [PATCH] More debug logging --- setup/mscs/msc2836/msc2836.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup/mscs/msc2836/msc2836.go b/setup/mscs/msc2836/msc2836.go index 706fd1fb..24d35065 100644 --- a/setup/mscs/msc2836/msc2836.go +++ b/setup/mscs/msc2836/msc2836.go @@ -244,7 +244,9 @@ func (rc *reqCtx) process() (*gomatrixserverlib.MSC2836EventRelationshipsRespons var returnEvents []*gomatrixserverlib.HeaderedEvent // Can the user see (according to history visibility) event_id? If no, reject the request, else continue. event := rc.getLocalEvent(rc.req.EventID) + logrus.Infof("::DEBUG:: process %v event=>%+v", rc.req.EventID, event) if event == nil { + logrus.Infof("::DEBUG:: process %v not found locally, fetching", rc.req.EventID) event = rc.fetchUnknownEvent(rc.req.EventID, rc.req.RoomID) } if rc.req.RoomID == "" && event != nil { @@ -298,6 +300,7 @@ func (rc *reqCtx) process() (*gomatrixserverlib.MSC2836EventRelationshipsRespons res.Events[i] = ev.Unwrap() } res.Limited = remaining == 0 || walkLimited + logrus.Infof("::DEBUG:: sending response %+v", res) return &res, nil }