Commit 155f34e8 authored by Guido van Rossum's avatar Guido van Rossum

Log result of opening the trace file.

parent 30919f0d
...@@ -97,7 +97,7 @@ with '\0\0\0\0'. ...@@ -97,7 +97,7 @@ with '\0\0\0\0'.
If var is not writable, then temporary files are used for If var is not writable, then temporary files are used for
file 0 and file 1. file 0 and file 1.
$Id: ClientCache.py,v 1.31 2002/08/30 18:13:43 gvanrossum Exp $ $Id: ClientCache.py,v 1.32 2002/08/30 20:02:42 gvanrossum Exp $
""" """
import os import os
...@@ -492,8 +492,11 @@ class ClientCache: ...@@ -492,8 +492,11 @@ class ClientCache:
try: try:
self._tracefile = open(tfn, "ab") self._tracefile = open(tfn, "ab")
self._trace(0x00) self._trace(0x00)
except IOError: except IOError, msg:
self._tracefile = None self._tracefile = None
log("cannot write tracefile %s (%s)" % (tfn, msg))
else:
log("opened tracefile %s" % tfn)
if self._tracefile is None: if self._tracefile is None:
def notrace(*args): def notrace(*args):
pass pass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment