--debug output: stdout instead of stderr
Merge pull request #525 from dbabokin/debug

--debug output: stdout instead of stderr