Log more information to the console.

This is principally needed to debug issues on the Chromium project's automated test machines.
Merge pull request #679 from kenrussell/log-debug-to-console

Log more information to the console.