[Zodb-checkins] CVS: ZODB3/ZEO - ClientCache.py:1.38 ClientStorage.py:1.73 StorageServer.py:1.74
Guido van Rossum
guido@python.org
Tue, 1 Oct 2002 17:12:13 -0400
Update of /cvs-repository/ZODB3/ZEO
In directory cvs.zope.org:/tmp/cvs-serv20773
Modified Files:
ClientCache.py ClientStorage.py StorageServer.py
Log Message:
Log the actual class name.
=== ZODB3/ZEO/ClientCache.py 1.37 => 1.38 ===
--- ZODB3/ZEO/ClientCache.py:1.37 Wed Sep 18 17:22:58 2002
+++ ZODB3/ZEO/ClientCache.py Tue Oct 1 17:12:12 2002
@@ -184,8 +184,8 @@
f[0].write(magic)
current = 0
- log("ClientCache: storage=%r, size=%r; file[%r]=%r" %
- (storage, size, current, p[current]))
+ log("%s: storage=%r, size=%r; file[%r]=%r" %
+ (self.__class__.__name__, storage, size, current, p[current]))
self._limit = size / 2
self._current = current
=== ZODB3/ZEO/ClientStorage.py 1.72 => 1.73 ===
--- ZODB3/ZEO/ClientStorage.py:1.72 Tue Oct 1 14:45:56 2002
+++ ZODB3/ZEO/ClientStorage.py Tue Oct 1 17:12:12 2002
@@ -166,8 +166,9 @@
true.
"""
- log2(INFO, "ClientStorage (pid=%d) created %s/%s for storage: %r" %
- (os.getpid(),
+ log2(INFO, "%s (pid=%d) created %s/%s for storage: %r" %
+ (self.__class__.__name__,
+ os.getpid(),
read_only and "RO" or "RW",
read_only_fallback and "fallback" or "normal",
storage))
=== ZODB3/ZEO/StorageServer.py 1.73 => 1.74 ===
--- ZODB3/ZEO/StorageServer.py:1.73 Tue Oct 1 16:51:44 2002
+++ ZODB3/ZEO/StorageServer.py Tue Oct 1 17:12:12 2002
@@ -97,8 +97,8 @@
msg = ", ".join(
["%s:%s" % (name, storage.isReadOnly() and "RO" or "RW")
for name, storage in storages.items()])
- log("StorageServer created %s with storages: %s" %
- (read_only and "RO" or "RW", msg))
+ log("%s created %s with storages: %s" %
+ (self.__class__.__name__, read_only and "RO" or "RW", msg))
for s in storages.values():
s._waiting = []
self.read_only = read_only