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"
"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()
}