Change logging to only be enabled in debug mode

This should aide in performance benefits when doing large populations (though the developer should still disable SQL logging as well).
We're no longer doing this - there was a commit recently that fixed it up to use a passed boolean value for debug mode.