summaryrefslogtreecommitdiff
path: root/kvmd/aioproc.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-04-12 12:45:27 +0300
committerMaxim Devaev <[email protected]>2022-04-12 12:45:27 +0300
commit04e0ad213aa73745f988005abb3dcebee2c10ae7 (patch)
treeb1f31ac887bb42b83df68ffe1b4644260d16c6c6 /kvmd/aioproc.py
parent047d8ad760249858034d13a523b99af1bc9b6c1d (diff)
removed unnecessary proc.returncode
Diffstat (limited to 'kvmd/aioproc.py')
-rw-r--r--kvmd/aioproc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/aioproc.py b/kvmd/aioproc.py
index 013f2f8c..4cc3fbf5 100644
--- a/kvmd/aioproc.py
+++ b/kvmd/aioproc.py
@@ -105,14 +105,14 @@ async def kill_process(proc: asyncio.subprocess.Process, wait: float, logger: lo
if proc.returncode is not None:
raise
await proc.wait()
- logger.info("Process killed: pid=%d; retcode=%d", proc.pid, proc.returncode)
+ logger.info("Process killed: retcode=%d", proc.pid, proc.returncode)
except asyncio.CancelledError:
pass
except Exception:
if proc.returncode is None:
logger.exception("Can't kill process pid=%d", proc.pid)
else:
- logger.info("Process killed: pid=%d; retcode=%d", proc.pid, proc.returncode)
+ logger.info("Process killed: retcode=%d", proc.pid, proc.returncode)
def rename_process(suffix: str, prefix: str="kvmd") -> None: