diff --git a/clientapi/routing/sendevent.go b/clientapi/routing/sendevent.go index bfb48f3df0..3d28f1e2da 100644 --- a/clientapi/routing/sendevent.go +++ b/clientapi/routing/sendevent.go @@ -52,6 +52,12 @@ func SendEvent( rsAPI api.RoomserverInternalAPI, txnCache *transactions.Cache, ) util.JSONResponse { + prevEvent := req.URL.Query().Get("prev_event") + + util.GetLogger(req.Context()).WithFields(logrus.Fields{ + "prevEvent": prevEvent, + }).Info("prevEvent") + verReq := api.QueryRoomVersionForRoomRequest{RoomID: roomID} verRes := api.QueryRoomVersionForRoomResponse{} if err := rsAPI.QueryRoomVersionForRoom(req.Context(), &verReq, &verRes); err != nil {