Do not log if DEBUG != 1

We might define DEBUG to be 0, to disable it. This explicitly requires that DEBUG be defined and 1.
More succinct logic
Merge pull request #95 from streeter/logging-patch

Do not log if DEBUG != 1