Rework the replaying exception handling
to make it a bit more robust and give more details on what's going on in case of errors.
Add tests for those error situations.
Also improve logging in replay.py:
Add a few debug logging statements and improve the info-level summary
statement at the end of process_replay_objects_content()
, and fix tests accordingly.
Migrated from D8939 (view on Phabricator)