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).
As a workaround if you cant update to that commit (given HEAD is broken) you can just specify %kernel.debug% for this configuration key in config.yml and it will work.