Commit 5748c0bc authored by Guido van Rossum's avatar Guido van Rossum

Log the actual class name.

parent 5afd5f2e
......@@ -99,7 +99,7 @@ with '\0\0\0\0'.
If var is not writable, then temporary files are used for
file 0 and file 1.
$Id: ClientCache.py,v 1.37 2002/09/18 21:22:58 gvanrossum Exp $
$Id: ClientCache.py,v 1.38 2002/10/01 21:12:12 gvanrossum Exp $
"""
import os
......@@ -184,8 +184,8 @@ class ClientCache:
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
......
......@@ -20,7 +20,7 @@ ClientStorageError -- exception raised by ClientStorage
UnrecognizedResult -- exception raised by ClientStorage
ClientDisconnected -- exception raised by ClientStorage
$Id: ClientStorage.py,v 1.72 2002/10/01 18:45:56 gvanrossum Exp $
$Id: ClientStorage.py,v 1.73 2002/10/01 21:12:12 gvanrossum Exp $
"""
# XXX TO DO
......@@ -166,8 +166,9 @@ class ClientStorage:
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))
......
......@@ -97,8 +97,8 @@ class StorageServer:
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
......
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