summaryrefslogtreecommitdiff
path: root/kvmd/plugins
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-06-19 20:56:51 +0300
committerMaxim Devaev <[email protected]>2022-06-19 20:56:51 +0300
commit43da6af153107b0e1ed176dea08effdcb71725f6 (patch)
tree4a50e6cd1d6e38829bf50dfbb456c1846f5bbcaa /kvmd/plugins
parent0edf854832a85c68d09125a0ef1491a093c78d99 (diff)
improved subprocess cmd logging
Diffstat (limited to 'kvmd/plugins')
-rw-r--r--kvmd/plugins/ugpio/cmd.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/kvmd/plugins/ugpio/cmd.py b/kvmd/plugins/ugpio/cmd.py
index 72f7ee8e..5233b76f 100644
--- a/kvmd/plugins/ugpio/cmd.py
+++ b/kvmd/plugins/ugpio/cmd.py
@@ -83,7 +83,8 @@ class Plugin(BaseUserGpioDriver): # pylint: disable=too-many-instance-attribute
if proc.returncode != 0:
raise RuntimeError(f"Custom command error: retcode={proc.returncode}")
except Exception as err:
- get_logger(0).error("Can't run custom command %s: %s", self.__cmd, tools.efmt(err))
+ get_logger(0).error("Can't run custom command [ %s ]: %s",
+ tools.cmdfmt(self.__cmd), tools.efmt(err))
raise GpioDriverOfflineError(self)
def __str__(self) -> str: