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.