More logging

This commit is contained in:
Richard van der Hoff 2017-12-19 11:06:01 +00:00
parent 98a1298a93
commit 49b65a7b11

View file

@ -66,6 +66,7 @@ func (r *RoomserverInputAPI) InputRoomEvents(
defer r.mutex.Unlock()
for i := range request.InputRoomEvents {
if err := processRoomEvent(ctx, r.DB, r, request.InputRoomEvents[i]); err != nil {
util.GetLogger(ctx).Warnf("ProcessRoomEvent returned %s", err)
return err
}
}
@ -74,6 +75,7 @@ func (r *RoomserverInputAPI) InputRoomEvents(
return err
}
}
util.GetLogger(ctx).Info("InputRoomEvents done")
return nil
}