Enable debug logging in debug mode