replay: Add more debug logs
Add more debug logs to the replay module to ease detection of issues. Nevertheless, as those are quite verbose, only display them when setting debug parameter of the loader to True.
Migrated from D8886 (view on Phabricator)