优化调用日志显示。
This commit is contained in:
parent
8bf395ad22
commit
f439ca8167
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue