[ZODB-Dev] ZEO trace info

Florent Guillaume fg@nuxeo.com
24 Jan 2003 14:39:57 +0100


On Fri, 2003-01-24 at 14:38, Florent Guillaume wrote:
> On Fri, 2003-01-24 at 14:07, Guido van Rossum wrote:
> > > Does anyone have a problem if I bump most zLOG.DEBUG to zLOG.TRACE in
> > > the misc ZEO files? A lot of info is written for a single page request,
> > > and it's very hard to see other DEBUG messages in the middle of the ZEO
> > > stuff.
> > 
> > Sure, but as one of the current ZEO developers I'd prefer to review
> > your proposed changes a little.  Can you either provide a patch or
> > just a list of which messages you'd like to see bumped?
> 
> I was thinking of:
> 
> --- connection.py.~1.38.2.3.~	Thu Dec 19 18:44:04 2002
> +++ connection.py	Fri Jan 24 14:34:46 2003
> @@ -213,7 +213,7 @@
>      def handle_reply(self, msgid, flags, args):
>          if __debug__:
>              self.log("recv reply: %s, %s, %s"
> -                     % (msgid, flags, short_repr(args)), level=zLOG.DEBUG)
> +                     % (msgid, flags, short_repr(args)), level=zLOG.TRACE)
>          self.replies_cond.acquire()
>          try:
>              self.replies[msgid] = flags, args
> @@ -387,7 +387,7 @@
>                      del self.replies[msgid]
>                      if __debug__:
>                          self.log("wait(%d): reply=%s" %
> -                                 (msgid, short_repr(reply)), level=zLOG.DEBUG)
> +                                 (msgid, short_repr(reply)), level=zLOG.TRACE)
>                      return reply
>                  if self.is_async():
>                      self.replies_cond.wait(10.0)
> 

Oh, that patch is in ZODB3-3_1-branch BTW.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com