Skip to content

Commit 45a3014

Browse files
committed
parent: decode logged stdout as UTF-8.
1 parent 6f7941d commit 45a3014

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mitogen/parent.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,8 @@ def _on_ec2_received(self, line, match):
11371137
return False
11381138

11391139
def on_unrecognized_line_received(self, line):
1140-
LOG.debug('%s: stdout: %s', self.stream.name, line)
1140+
LOG.debug('%s: stdout: %s', self.stream.name,
1141+
line.decode('utf-8', 'replace'))
11411142

11421143
PATTERNS = [
11431144
(re.compile(EC0_MARKER), _on_ec0_received),

0 commit comments

Comments
 (0)