Use an environment variable to control debug logging at runtime