Provide more verbose logging when something goes wrong.