Put the dust.log statement outside of the `if` statement. The `dust.log` statement should make its own decision on whether to log or not (of course, the default *also* checks `dust.isDebug`, but might not in overridden versions).