Don't print debug messages if not debugging

This was Red Hat bug #1000770, patched downstream in RHBA-2014-0683
https://bugzilla.redhat.com/show_bug.cgi?id=1000770