Log failed doc retrievals
Turn off logging during tests
Shorten retry delays
Add some comments