(self)
| 7 | |
| 8 | class DebugFileWriter: |
| 9 | def __init__(self): |
| 10 | if not IS_DEBUG_ENABLED: |
| 11 | return |
| 12 | |
| 13 | try: |
| 14 | self.debug_artifacts_path = os.path.expanduser( |
| 15 | f"{DEBUG_DIR}/{str(uuid.uuid4())}" |
| 16 | ) |
| 17 | os.makedirs(self.debug_artifacts_path, exist_ok=True) |
| 18 | print(f"Debugging artifacts will be stored in: {self.debug_artifacts_path}") |
| 19 | except: |
| 20 | logging.error("Failed to create debug directory") |
| 21 | |
| 22 | def write_to_file(self, filename: str, content: str) -> None: |
| 23 | try: |
nothing calls this directly
no outgoing calls
no test coverage detected