# HG changeset patch # User Goffi # Date 1565968011 -7200 # Node ID 0d55a52056f76a783c2f55235bbb90e4aceb28b3 # Parent 95e2fd14a761580b7feabeeaa33b4e714274ae36 tools (async_process): log command as str diff -r 95e2fd14a761 -r 0d55a52056f7 sat/tools/common/async_process.py --- 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)