Added some logging.

Since we're occasionally experiencing busted exports but have no
idea why, hopefully this logging will point us in a better direction.