Remove debug lines

This commit is contained in:
Kegan Dougal 2020-04-27 18:54:06 +01:00
parent 2b10a5ca23
commit 7ae6884cc8
2 changed files with 2 additions and 4 deletions

View file

@ -110,9 +110,9 @@ func (b *backfillRequester) StateBeforeEvent(ctx context.Context, roomVer gomatr
events, err := b.ProvideEvents(roomVer, eventIDs)
if err != nil {
// non-fatal, fallthrough
logrus.WithError(err).Info("Failed to fetch events banana")
logrus.WithError(err).Info("Failed to fetch events")
} else {
logrus.Infof("Fetched %d/%d events from the database banana", len(events), len(eventIDs))
logrus.Infof("Fetched %d/%d events from the database", len(events), len(eventIDs))
if len(events) == len(eventIDs) {
result := make(map[string]*gomatrixserverlib.Event)
for i := range events {
@ -123,7 +123,6 @@ func (b *backfillRequester) StateBeforeEvent(ctx context.Context, roomVer gomatr
}
}
logrus.WithField("event_id", event.EventID()).Info("Requesting /state at event banana")
c := gomatrixserverlib.FederatedStateProvider{
FedClient: b.fedClient,
AuthEventsOnly: false,

View file

@ -489,7 +489,6 @@ func (r *RoomserverQueryAPI) QueryBackfill(
request *api.QueryBackfillRequest,
response *api.QueryBackfillResponse,
) error {
logrus.WithField("req", request).Info("QueryBackfill - I am " + r.ServerName)
// if we are requesting the backfill then we need to do a federation hit
// TODO: we could be more sensible and fetch as many events we already have then request the rest
// which is what the syncapi does already.