From e9c667ea6b6343e14a9ae7147ded4cf129c505a1 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 9 Mar 2022 10:15:09 +0000 Subject: [PATCH] Remove logging --- clientapi/routing/directory.go | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/clientapi/routing/directory.go b/clientapi/routing/directory.go index 3c1f6e2f3..51f1efc41 100644 --- a/clientapi/routing/directory.go +++ b/clientapi/routing/directory.go @@ -26,7 +26,6 @@ import ( userapi "github.com/matrix-org/dendrite/userapi/api" "github.com/matrix-org/gomatrixserverlib" "github.com/matrix-org/util" - "github.com/sirupsen/logrus" ) type roomDirectoryResponse struct { @@ -238,19 +237,15 @@ type roomVisibility struct { // GetVisibility implements GET /directory/list/room/{roomID} func GetVisibility( - httpReq *http.Request, rsAPI roomserverAPI.RoomserverInternalAPI, + req *http.Request, rsAPI roomserverAPI.RoomserverInternalAPI, roomID string, ) util.JSONResponse { - req := &roomserverAPI.QueryPublishedRoomsRequest{ - RoomID: roomID, - } res := &roomserverAPI.QueryPublishedRoomsResponse{} - err := rsAPI.QueryPublishedRooms(httpReq.Context(), req, res) - logrus.Infof("XXX: QueryPublishedRoomsRequest: %+v", req) - logrus.Infof("XXX: QueryPublishedRoomsResponse: %+v", res) - logrus.Infof("XXX: err: %+v", err) + err := rsAPI.QueryPublishedRooms(req.Context(), &roomserverAPI.QueryPublishedRoomsRequest{ + RoomID: roomID, + }, res) if err != nil { - util.GetLogger(httpReq.Context()).WithError(err).Error("QueryPublishedRooms failed") + util.GetLogger(req.Context()).WithError(err).Error("QueryPublishedRooms failed") return jsonerror.InternalServerError() }