Log output on failures
Merge pull request #425 from hunner/add_debug_output

Log output on failures