[Zodb-checkins] CVS: Packages/ZEO - zrpc2.py:1.1.2.11
jeremy@digicool.com
jeremy@digicool.com
Wed, 25 Apr 2001 18:15:23 -0400 (EDT)
Update of /cvs-repository/Packages/ZEO
In directory korak:/tmp/cvs-serv3129
Modified Files:
Tag: ZEO-ZRPC-Dev
zrpc2.py
Log Message:
Make the low-level zrpc log calls use DEBUG level, so that they are
distinguished from the lower-level smac calls that use TRACE.
--- Updated File zrpc2.py in package Packages/ZEO --
--- zrpc2.py 2001/04/25 20:36:20 1.1.2.10
+++ zrpc2.py 2001/04/25 22:15:22 1.1.2.11
@@ -176,7 +176,7 @@
if __debug__:
log("recv msg: %s, %s, %s, %s" % (msgid, flags, name,
repr(args)[:40]),
- level=zeolog.TRACE)
+ level=zeolog.DEBUG)
if name == REPLY:
self.handle_reply(msgid, flags, args)
else:
@@ -185,14 +185,14 @@
def handle_reply(self, msgid, flags, args):
if __debug__:
log("recv reply: %s, %s, %s" % (msgid, flags, str(args)[:40]),
- level=zeolog.TRACE)
+ level=zeolog.DEBUG)
self.__reply = msgid, flags, args
self.__reply_lock.release() # will fail if lock is unlocked
def handle_request(self, msgid, flags, name, args):
if __debug__:
log("call %s%s on %s" % (name, repr(args)[:40], repr(self.obj)),
- zeolog.TRACE)
+ zeolog.DEBUG)
if not self.check_method(name):
raise ZRPCError("Invalid method name: %s" % name)
@@ -223,7 +223,7 @@
raise ZRPCError("async method returned value")
else:
if __debug__:
- log("%s return %s" % (name, repr(ret)[:40]), zeolog.TRACE)
+ log("%s return %s" % (name, repr(ret)[:40]), zeolog.DEBUG)
if isinstance(ret, Delay):
ret.set_sender(msgid, self.send_reply)
else:
@@ -345,7 +345,7 @@
if __debug__:
log("_do_io(wait=%d), async=%d" % (wait, self.is_async()),
- level=zeolog.TRACE)
+ level=zeolog.DEBUG)
if self.is_async():
self.trigger.pull_trigger()
if wait: