"""Enable serving-worker capture only when explicitly requested by environment.""" import os if os.environ.get("INFERENCE_CAPTURE_ROOT"): try: from capture_inputs import install install() except Exception: import traceback traceback.print_exc() os._exit(70)