Enable debug logging with environment variable