From 20e96f53327dc91c094c25eb7bd1bd3c65c8cf5a Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 9 Nov 2021 14:39:50 +0000 Subject: [PATCH] logging --- federationapi/routing/join.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/federationapi/routing/join.go b/federationapi/routing/join.go index e3a16b3e..8ecc7bc9 100644 --- a/federationapi/routing/join.go +++ b/federationapi/routing/join.go @@ -160,10 +160,13 @@ func MakeJoin( if err = gomatrixserverlib.Allowed(event.Event, &provider); err != nil { if joinRules.JoinRule == gomatrixserverlib.Restricted { - return attemptMakeJoinForRestrictedMembership( + res := attemptMakeJoinForRestrictedMembership( httpReq, cfg, rsAPI, &verRes, provider, &builder, joinRules, userID, ) + j, _ := json.Marshal(res) + logrus.Info("restricted make_join response:", string(j)) + return res } return util.JSONResponse{ Code: http.StatusForbidden,