tools (async_process): log command as str
This commit is contained in:
parent
b00ea1546c
commit
4b2d53b797
1 changed files with 2 additions and 1 deletions
|
|
@ -76,7 +76,8 @@ class CommandProtocol(protocol.ProcessProtocol):
|
|||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue