From 566a4c1e3ce73e0bbdd3f286f18ddd2afae4b8f7 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Wed, 28 May 2025 12:31:11 +0100 Subject: [PATCH] mitogen: log child file objects rather than descriptors The repr() of file objects is more self descriptive, and includes the fd. --- mitogen/parent.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mitogen/parent.py b/mitogen/parent.py index f9200a2e..7c56c734 100644 --- a/mitogen/parent.py +++ b/mitogen/parent.py @@ -1686,9 +1686,7 @@ class Connection(object): LOG.debug('child for %r started: pid:%r stdin:%r stdout:%r stderr:%r', self, self.proc.pid, - self.proc.stdin.fileno(), - self.proc.stdout.fileno(), - self.proc.stderr and self.proc.stderr.fileno()) + self.proc.stdin, self.proc.stdout, self.proc.stderr) self.stdio_stream = self._setup_stdio_stream() if self.context.name is None: