Do not log if DEBUG != 0

We might define DEBUG to be 0, to disable it. This explicitly requires that DEBUG be defined and 1.