service: log better warning when CallError raised.

pull/193/head
David Wilson 6 years ago
parent ed915b6e63
commit c83b113600

@ -185,7 +185,7 @@ class Service(object):
if response is not self.NO_REPLY:
msg.reply(response)
except mitogen.core.CallError:
LOG.warning('%r: %s', self, msg)
LOG.warning('%r: call error: %s: %s', self, msg, e)
e = sys.exc_info()[1]
msg.reply(e)
except Exception:

Loading…
Cancel
Save