From 947d35649c8404f1649fea4b68984537b0071cbe Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sat, 28 Apr 2018 23:37:45 +0100 Subject: [PATCH] parent: note exception machine's hostname. For dumb situations where user (i.e. me) is trying to fix a problem in the wrong place. --- mitogen/parent.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mitogen/parent.py b/mitogen/parent.py index cbeea1bb..37a75c71 100644 --- a/mitogen/parent.py +++ b/mitogen/parent.py @@ -484,7 +484,10 @@ def _proxy_connect(name, method_name, kwargs, econtext): return { 'id': None, 'name': None, - 'msg': str(sys.exc_info()[1]), + 'msg': '%s (error occurred on host %s)' % ( + sys.exc_info()[1], + socket.gethostname(), + ), } return {