[Zodb-checkins] CVS: ZODB3/ZEO/zrpc - marshal.py:1.10

Guido van Rossum guido@python.org
Sat, 28 Sep 2002 23:23:01 -0400


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

Modified Files:
	marshal.py 
Log Message:
Use short_repr() when a message can't be decoded.  The garbage could
be arbitrarily long.


=== ZODB3/ZEO/zrpc/marshal.py 1.9 => 1.10 ===
--- ZODB3/ZEO/zrpc/marshal.py:1.9	Sat Sep 28 21:32:57 2002
+++ ZODB3/ZEO/zrpc/marshal.py	Sat Sep 28 23:23:01 2002
@@ -38,7 +38,7 @@
         try:
             return unpickler.load() # msgid, flags, name, args
         except:
-            log("can't decode message: %s" % repr(msg), level=zLOG.ERROR)
+            log("can't decode message: %s" % short_repr(msg), level=zLOG.ERROR)
             raise
 
 _globals = globals()