changeset 3033:0d55a52056f7

tools (async_process): log command as str
author Goffi <goffi@goffi.org>
date Fri, 16 Aug 2019 17:06:51 +0200 (2019-08-16)
parents 95e2fd14a761
children ca6c695c65da
files sat/tools/common/async_process.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat/tools/common/async_process.py	Fri Aug 16 17:06:44 2019 +0200
+++ b/sat/tools/common/async_process.py	Fri Aug 16 17:06:51 2019 +0200
@@ -76,7 +76,8 @@
     def processEnded(self, reason):
         data = b''.join(self.data)
         if (reason.value.exitCode == 0):
-            log.debug(_('{name} command succeed').format(name=self.command_name))
+            log.debug(_('{name!r} command succeed').format(
+                name=self.command_name.decode('utf-8', 'ignore')))
             # we don't use "replace" on purpose, we want an exception if decoding
             # is not working properly
             self._deferred.callback(data)