mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-01 03:03:10 -06:00
Remove logging
This commit is contained in:
parent
4c61b46a04
commit
e9c667ea6b
|
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue