Skip to content

Commit d9cc577

Browse files
committed
issue #440: log Python version during bootstrap.
1 parent 49796e0 commit d9cc577

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mitogen/core.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3919,14 +3919,16 @@ def main(self):
39193919
self.router.register(self.parent, self.stream)
39203920
self.router._setup_logging()
39213921

3922-
sys.executable = os.environ.pop('ARGV0', sys.executable)
3922+
_v and LOG.debug('Python version is %s', sys.version)
39233923
_v and LOG.debug('Parent is context %r (%s); my ID is %r',
39243924
self.parent.context_id, self.parent.name,
39253925
mitogen.context_id)
39263926
_v and LOG.debug('pid:%r ppid:%r uid:%r/%r, gid:%r/%r host:%r',
39273927
os.getpid(), os.getppid(), os.geteuid(),
39283928
os.getuid(), os.getegid(), os.getgid(),
39293929
socket.gethostname())
3930+
3931+
sys.executable = os.environ.pop('ARGV0', sys.executable)
39303932
_v and LOG.debug('Recovered sys.executable: %r', sys.executable)
39313933

39323934
if self.config.get('send_ec2', True):

0 commit comments

Comments
 (0)