[Zodb-checkins] CVS: ZODB3/ZEO/zrpc - connection.py:1.27

Guido van Rossum guido@python.org
Tue, 17 Sep 2002 12:33:34 -0400


Update of /cvs-repository/ZODB3/ZEO/zrpc
In directory cvs.zope.org:/tmp/cvs-serv20597

Modified Files:
	connection.py 
Log Message:
When a call in the server raises an exception that is passed back to
the client, don't log it at the ERROR level.  If it really was a
disaster, the client should log it.  But if the client was expecting
the exception, the esrver shouldn't get all upset about it.  Change
this to the INFO level.  (When it *is* considered an error by the
client, it's useful to be able to see the server-side traceback in the
log.)


=== ZODB3/ZEO/zrpc/connection.py 1.26 => 1.27 ===
--- ZODB3/ZEO/zrpc/connection.py:1.26	Tue Sep 17 11:11:36 2002
+++ ZODB3/ZEO/zrpc/connection.py	Tue Sep 17 12:33:33 2002
@@ -232,7 +232,7 @@
             # there are several cases where this happens during the
             # normal course of action, shouldn't this be logged at the
             # INFO level?
-            log("%s() raised exception: %s" % (name, msg), zLOG.ERROR,
+            log("%s() raised exception: %s" % (name, msg), zLOG.INFO,
                 error=error)
             error = error[:2]
             return self.return_error(msgid, flags, *error)