[Zodb-checkins] CVS: ZODB3/ZEO - StorageServer.py:1.62
Guido van Rossum
guido@python.org
Mon, 16 Sep 2002 23:51:47 -0400
Update of /cvs-repository/ZODB3/ZEO
In directory cvs.zope.org:/tmp/cvs-serv4301
Modified Files:
StorageServer.py
Log Message:
Move the set_label() call to before the first log message. Remove the
(now redundant) pid=%s part from that first log message.
=== ZODB3/ZEO/StorageServer.py 1.61 => 1.62 ===
--- ZODB3/ZEO/StorageServer.py:1.61 Mon Sep 16 23:45:40 2002
+++ ZODB3/ZEO/StorageServer.py Mon Sep 16 23:51:47 2002
@@ -61,18 +61,18 @@
def __init__(self, addr, storages, read_only=0):
self.addr = addr
self.storages = storages
+ set_label()
msg = ", ".join(
["%s:%s" % (name, storage.isReadOnly() and "RO" or "RW")
for name, storage in storages.items()])
- log("StorageServer (pid=%d) created %s with storages: %s" %
- (os.getpid(), read_only and "RO" or "RW", msg))
+ log("StorageServer created %s with storages: %s" %
+ (read_only and "RO" or "RW", msg))
for s in storages.values():
s._waiting = []
self.read_only = read_only
self.connections = {}
self.dispatcher = Dispatcher(addr, factory=self.new_connection,
reuse_addr=1)
- set_label()
def new_connection(self, sock, addr):
c = ManagedServerConnection(sock, addr, ZEOStorage(self), self)