REVIEW - NEXUS-6526 - log request details on IOException or internal error

backport of https://issues.sonatype.org/browse/NEXUS-6526 in case customer finds it useful and to make patches easier.