Skip to content

Commit

Permalink
Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kegsay committed Jul 8, 2021
1 parent 816e1a4 commit 23ce334
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions syncapi/consumers/roomserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ func (s *OutputRoomEventConsumer) onNewRoomEvent(
sentry.CaptureException(err)
return err
}
log.Infof("onNewRoomEvent -> %d: %+v", pduPos, msg)

s.pduStream.Advance(pduPos)
s.notifier.OnNewEvent(ev, ev.RoomID(), nil, types.StreamingToken{PDUPosition: pduPos})
Expand Down
1 change: 1 addition & 0 deletions syncapi/sync/requestpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ func (rp *RequestPool) OnIncomingSyncRequest(req *http.Request, device *userapi.
),
}
}
syncReq.Log.Infof("%s->%s : %+v", syncReq.Since, syncReq.Response.NextBatch, syncReq.Response)

return util.JSONResponse{
Code: http.StatusOK,
Expand Down

0 comments on commit 23ce334

Please sign in to comment.