Remove logging

This commit is contained in:
Neil Alexander 2022-03-09 10:15:09 +00:00
parent 4c61b46a04
commit e9c667ea6b
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -26,7 +26,6 @@ import (
userapi "github.com/matrix-org/dendrite/userapi/api" userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/gomatrixserverlib" "github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/util" "github.com/matrix-org/util"
"github.com/sirupsen/logrus"
) )
type roomDirectoryResponse struct { type roomDirectoryResponse struct {
@ -238,19 +237,15 @@ type roomVisibility struct {
// GetVisibility implements GET /directory/list/room/{roomID} // GetVisibility implements GET /directory/list/room/{roomID}
func GetVisibility( func GetVisibility(
httpReq *http.Request, rsAPI roomserverAPI.RoomserverInternalAPI, req *http.Request, rsAPI roomserverAPI.RoomserverInternalAPI,
roomID string, roomID string,
) util.JSONResponse { ) util.JSONResponse {
req := &roomserverAPI.QueryPublishedRoomsRequest{
RoomID: roomID,
}
res := &roomserverAPI.QueryPublishedRoomsResponse{} res := &roomserverAPI.QueryPublishedRoomsResponse{}
err := rsAPI.QueryPublishedRooms(httpReq.Context(), req, res) err := rsAPI.QueryPublishedRooms(req.Context(), &roomserverAPI.QueryPublishedRoomsRequest{
logrus.Infof("XXX: QueryPublishedRoomsRequest: %+v", req) RoomID: roomID,
logrus.Infof("XXX: QueryPublishedRoomsResponse: %+v", res) }, res)
logrus.Infof("XXX: err: %+v", err)
if err != nil { if err != nil {
util.GetLogger(httpReq.Context()).WithError(err).Error("QueryPublishedRooms failed") util.GetLogger(req.Context()).WithError(err).Error("QueryPublishedRooms failed")
return jsonerror.InternalServerError() return jsonerror.InternalServerError()
} }