summaryrefslogtreecommitdiff
path: root/kvmd/plugins
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2021-10-24 12:02:36 +0300
committerMaxim Devaev <[email protected]>2021-10-24 12:06:40 +0300
commitb6aaf18c4268557753f41ff37cca2c32c48a47e9 (patch)
tree356e9bcd8302f3e19e4f88fd8260116047e98caa /kvmd/plugins
parent434acc5de54b000a85b88decd1776daee914c9c0 (diff)
prefix for log_process()
Diffstat (limited to 'kvmd/plugins')
-rw-r--r--kvmd/plugins/ugpio/cmd.py2
-rw-r--r--kvmd/plugins/ugpio/ipmi.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/plugins/ugpio/cmd.py b/kvmd/plugins/ugpio/cmd.py
index 6fa28409..7e549f1a 100644
--- a/kvmd/plugins/ugpio/cmd.py
+++ b/kvmd/plugins/ugpio/cmd.py
@@ -79,7 +79,7 @@ class Plugin(BaseUserGpioDriver): # pylint: disable=too-many-instance-attribute
return
try:
- proc = await aioproc.log_process(self.__cmd, logger=get_logger(0))
+ proc = await aioproc.log_process(self.__cmd, logger=get_logger(0), prefix=str(self))
if proc.returncode != 0:
raise RuntimeError(f"Custom command error: pid={proc.pid}; retcode={proc.returncode}")
except Exception as err:
diff --git a/kvmd/plugins/ugpio/ipmi.py b/kvmd/plugins/ugpio/ipmi.py
index d61b145d..eb60f0d2 100644
--- a/kvmd/plugins/ugpio/ipmi.py
+++ b/kvmd/plugins/ugpio/ipmi.py
@@ -153,7 +153,7 @@ class Plugin(BaseUserGpioDriver): # pylint: disable=too-many-instance-attribute
return
action = (_OUTPUTS[pin] if pin.isdigit() else pin)
try:
- proc = await aioproc.log_process(**self.__make_ipmitool_kwargs(action), logger=get_logger(0))
+ proc = await aioproc.log_process(**self.__make_ipmitool_kwargs(action), logger=get_logger(0), prefix=str(self))
if proc.returncode != 0:
raise RuntimeError(f"Ipmitool error: pid={proc.pid}; retcode={proc.returncode}")
except Exception as err: