Skip to content

Commit 9650abe

Browse files
authored
Add debug logging for system config parsing errors (#705)
1 parent 5e4bf86 commit 9650abe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/cloudai/cli/handlers.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,12 +403,14 @@ def verify_system_configs(system_tomls: List[Path]) -> int:
403403
try:
404404
with _ensure_kube_config_exists(system_toml, content):
405405
Parser.parse_system(system_toml)
406-
except Exception:
406+
except Exception as e:
407+
logging.debug(f"Failed to parse system config {system_toml}: {e}", exc_info=True)
407408
nfailed += 1
408409
else:
409410
try:
410411
Parser.parse_system(system_toml)
411-
except Exception:
412+
except Exception as e:
413+
logging.debug(f"Failed to parse system config {system_toml}: {e}", exc_info=True)
412414
nfailed += 1
413415

414416
if nfailed:

0 commit comments

Comments
 (0)