request debug printout format and condition
Merge pull request #827 from spumko/issue/809

request debug printout format and condition