mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
improved subprocess cmd logging
This commit is contained in:
@@ -131,7 +131,7 @@ class _Service: # pylint: disable=too-many-instance-attributes
|
||||
async def __run_ctl(self, ctl: BaseCtl, direct: bool) -> bool:
|
||||
logger = get_logger()
|
||||
cmd = ctl.get_command(direct)
|
||||
logger.info("CMD: %s", " ".join(cmd))
|
||||
logger.info("CMD: %s", tools.cmdfmt(cmd))
|
||||
try:
|
||||
return (not (await aioproc.log_process(cmd, logger)).returncode)
|
||||
except Exception as err:
|
||||
|
||||
Reference in New Issue
Block a user