[Zodb-checkins] CVS: ZODB3/ZEO - ClientCache.py:1.32

Guido van Rossum guido@python.org
Fri, 30 Aug 2002 16:02:43 -0400


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

Modified Files:
	ClientCache.py 
Log Message:
Log result of opening the trace file.


=== ZODB3/ZEO/ClientCache.py 1.31 => 1.32 ===
--- ZODB3/ZEO/ClientCache.py:1.31	Fri Aug 30 14:13:43 2002
+++ ZODB3/ZEO/ClientCache.py	Fri Aug 30 16:02:42 2002
@@ -492,8 +492,11 @@
             try:
                 self._tracefile = open(tfn, "ab")
                 self._trace(0x00)
-            except IOError:
+            except IOError, msg:
                 self._tracefile = None
+                log("cannot write tracefile %s (%s)" % (tfn, msg))
+            else:
+                log("opened tracefile %s" % tfn)
         if self._tracefile is None:
             def notrace(*args):
                 pass