Commit 267e1e5d authored by Guido van Rossum's avatar Guido van Rossum

Subtle wording changes to the call and return log messages.

parent 95c9e5f5
...@@ -218,7 +218,7 @@ class Connection(smac.SizedMessageAsyncConnection): ...@@ -218,7 +218,7 @@ class Connection(smac.SizedMessageAsyncConnection):
msg = "Invalid method name: %s on %s" % (name, repr(self.obj)) msg = "Invalid method name: %s on %s" % (name, repr(self.obj))
raise ZRPCError(msg) raise ZRPCError(msg)
if __debug__: if __debug__:
log("%s%s" % (name, short_repr(args)), level=zLOG.BLATHER) log("calling %s%s" % (name, short_repr(args)), level=zLOG.BLATHER)
meth = getattr(self.obj, name) meth = getattr(self.obj, name)
try: try:
...@@ -238,7 +238,7 @@ class Connection(smac.SizedMessageAsyncConnection): ...@@ -238,7 +238,7 @@ class Connection(smac.SizedMessageAsyncConnection):
(name, repr(ret))) (name, repr(ret)))
else: else:
if __debug__: if __debug__:
log("%s return %s" % (name, short_repr(ret)), zLOG.DEBUG) log("%s returns %s" % (name, short_repr(ret)), zLOG.DEBUG)
if isinstance(ret, Delay): if isinstance(ret, Delay):
ret.set_sender(msgid, self.send_reply, self.return_error) ret.set_sender(msgid, self.send_reply, self.return_error)
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment