Add some logging around retries.