mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-01 03:03:10 -06:00
Let's try to work out why this endpoint lies
This commit is contained in:
parent
979738b2da
commit
47147c436d
|
|
@ -26,6 +26,7 @@ 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 {
|
||||
|
|
@ -244,6 +245,9 @@ func GetVisibility(
|
|||
err := rsAPI.QueryPublishedRooms(req.Context(), &roomserverAPI.QueryPublishedRoomsRequest{
|
||||
RoomID: roomID,
|
||||
}, &res)
|
||||
logrus.Infof("XXX: QueryPublishedRoomsRequest: %+v", req)
|
||||
logrus.Infof("XXX: QueryPublishedRoomsResponse: %+v", res)
|
||||
logrus.Infof("XXX: err: %+v", err)
|
||||
if err != nil {
|
||||
util.GetLogger(req.Context()).WithError(err).Error("QueryPublishedRooms failed")
|
||||
return jsonerror.InternalServerError()
|
||||
|
|
|
|||
Loading…
Reference in a new issue