优化调用日志显示。

This commit is contained in:
chenxudong 2025-08-11 11:25:17 +08:00
parent 8bf395ad22
commit f439ca8167
1 changed files with 2 additions and 0 deletions

View File

@ -48,7 +48,9 @@ def update_service(cmd):
result = subprocess.run(command, capture_output=True, text=True)
if result.returncode != 0:
logger.info(result.stdout)
logger.warning(f"操作失败cmd is {cmd}")
logger.error(result.stderr)
else:
logger.info(f"操作成功cmd is {cmd}")
pass