Enable logging in debug mode only