()
| 29 | |
| 30 | |
| 31 | def clear_logs(): |
| 32 | log_path = os.path.join(os.getcwd(), "log") |
| 33 | if os.path.exists(log_path): |
| 34 | try: |
| 35 | shutil.rmtree(log_path) |
| 36 | print(f"Deleted log directory: {log_path}") |
| 37 | except Exception as e: |
| 38 | print(f"Failed to delete log directory {log_path}: {e}") |
| 39 | else: |
| 40 | print(f"No log directory found at {log_path}") |
| 41 | |
| 42 | |
| 43 | def print_logs(): |
no test coverage detected