add request exception logging

This line is very cryptic. Can you put a comment explaining what it does?