From d43a846f9754aaaa31b78e802485ab6b8c813333 Mon Sep 17 00:00:00 2001 From: Till Faelligen <2353100+S7evinK@users.noreply.github.com> Date: Thu, 8 Sep 2022 11:34:59 +0200 Subject: [PATCH] More tweaks --- federationapi/inthttp/server.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/federationapi/inthttp/server.go b/federationapi/inthttp/server.go index 8af1f75d9..7aa0e4801 100644 --- a/federationapi/inthttp/server.go +++ b/federationapi/inthttp/server.go @@ -10,7 +10,6 @@ import ( "github.com/matrix-org/gomatrix" "github.com/matrix-org/gomatrixserverlib" "github.com/matrix-org/util" - "github.com/sirupsen/logrus" "github.com/matrix-org/dendrite/federationapi/api" "github.com/matrix-org/dendrite/internal/httputil" @@ -243,9 +242,11 @@ func federationClientError(err error) error { Code: 400, } default: - logrus.Debugf("Unknown error: %T", ferr) + // We don't know what exactly failed, but we probably don't + // want to retry the request immediately in the device list updater return &api.FederationClientError{ - Err: err.Error(), + Err: err.Error(), + Code: 400, } } }