From 7756d0d4df05e0c64ee171ac31874b1a3e21f248 Mon Sep 17 00:00:00 2001 From: Leonid Pershin Date: Fri, 21 Aug 2026 07:52:52 +0300 Subject: [PATCH] Enhance logging in CLI preflight checks - Added logging statements to the `doctor`, `dry_run`, and `up` functions to indicate the start of preflight checks, improving user feedback during execution. - Ensured consistent logging messages across different functions to enhance traceability and debugging capabilities. --- src/gpu_rent/cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gpu_rent/cli.py b/src/gpu_rent/cli.py index 3c31a16..bb1a2f1 100644 --- a/src/gpu_rent/cli.py +++ b/src/gpu_rent/cli.py @@ -130,6 +130,7 @@ def version() -> None: def doctor() -> None: """Preflight без create: Keystone, квота, flavor, диск, Civitai, манифесты.""" try: + log("запускаю проверку…") checks = run_doctor() except GpuRentError as exc: _die(exc) @@ -141,6 +142,7 @@ def doctor() -> None: def dry_run() -> None: """План без mutating-вызовов.""" try: + log("запускаю проверку…") checks = run_doctor() _print_checks(checks) console.print("\n[bold]План[/bold]") @@ -458,6 +460,7 @@ def up( from gpu_rent.prompts import MenuItem, prompt_menu from gpu_rent.varsfile import upsert_vars + log("запускаю проверку…") checks = run_doctor() code = _print_checks(checks, quiet=not verbose) if code != 0: