From 9a7c5670370e41753f3aac39a99a6a429f727bcd Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Thu, 27 Oct 2022 13:49:08 +0100 Subject: [PATCH] LOG MORE --- federationapi/internal/federationclient.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/federationapi/internal/federationclient.go b/federationapi/internal/federationclient.go index 2636b7fa0..95e228f3b 100644 --- a/federationapi/internal/federationclient.go +++ b/federationapi/internal/federationclient.go @@ -5,6 +5,7 @@ import ( "time" "github.com/matrix-org/gomatrixserverlib" + "github.com/sirupsen/logrus" ) // Functions here are "proxying" calls to the gomatrixserverlib federation @@ -44,12 +45,18 @@ func (a *FederationInternalAPI) ClaimKeys( ) (gomatrixserverlib.RespClaimKeys, error) { ctx, cancel := context.WithTimeout(ctx, time.Second*30) defer cancel() + + logrus.Infof("XXX: ClaimKeys request: %s %+v", s, oneTimeKeys) + ires, err := a.doRequestIfNotBlacklisted(s, func() (interface{}, error) { return a.federation.ClaimKeys(ctx, s, oneTimeKeys) }) if err != nil { + logrus.Infof("XXX: ClaimKeys error: %s %+v", s, err) return gomatrixserverlib.RespClaimKeys{}, err } + logrus.Infof("XXX: ClaimKeys response: %s %+v", s, ires.(gomatrixserverlib.RespClaimKeys)) + return ires.(gomatrixserverlib.RespClaimKeys), nil }