SM-2255: Add logging to troubleshoot intermittent test failure

(cherry picked from commit e564caf84bec1c215f94aeb089b10ac23c0c50d7)