diff sat/tools/common/async_process.py @ 3033:0d55a52056f7

tools (async_process): log command as str
author Goffi <goffi@goffi.org>
date Fri, 16 Aug 2019 17:06:51 +0200
parents ab2696e34d29
children fee60f17ebac
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)