mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-26 15:08:28 +00:00
More debug logging
This commit is contained in:
parent
517e4b8411
commit
c3e7c9aca8
1 changed files with 3 additions and 0 deletions
|
@ -244,7 +244,9 @@ func (rc *reqCtx) process() (*gomatrixserverlib.MSC2836EventRelationshipsRespons
|
||||||
var returnEvents []*gomatrixserverlib.HeaderedEvent
|
var returnEvents []*gomatrixserverlib.HeaderedEvent
|
||||||
// Can the user see (according to history visibility) event_id? If no, reject the request, else continue.
|
// Can the user see (according to history visibility) event_id? If no, reject the request, else continue.
|
||||||
event := rc.getLocalEvent(rc.req.EventID)
|
event := rc.getLocalEvent(rc.req.EventID)
|
||||||
|
logrus.Infof("::DEBUG:: process %v event=>%+v", rc.req.EventID, event)
|
||||||
if event == nil {
|
if event == nil {
|
||||||
|
logrus.Infof("::DEBUG:: process %v not found locally, fetching", rc.req.EventID)
|
||||||
event = rc.fetchUnknownEvent(rc.req.EventID, rc.req.RoomID)
|
event = rc.fetchUnknownEvent(rc.req.EventID, rc.req.RoomID)
|
||||||
}
|
}
|
||||||
if rc.req.RoomID == "" && event != nil {
|
if rc.req.RoomID == "" && event != nil {
|
||||||
|
@ -298,6 +300,7 @@ func (rc *reqCtx) process() (*gomatrixserverlib.MSC2836EventRelationshipsRespons
|
||||||
res.Events[i] = ev.Unwrap()
|
res.Events[i] = ev.Unwrap()
|
||||||
}
|
}
|
||||||
res.Limited = remaining == 0 || walkLimited
|
res.Limited = remaining == 0 || walkLimited
|
||||||
|
logrus.Infof("::DEBUG:: sending response %+v", res)
|
||||||
return &res, nil
|
return &res, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue