Commit bb4a24c5 authored by Guido van Rossum's avatar Guido van Rossum

Log the map at DEBUG level, not BLATHER.

Add the pid to the label.
parent d1c6a2c8
...@@ -63,8 +63,9 @@ def main(port, storage_name, rawargs): ...@@ -63,8 +63,9 @@ def main(port, storage_name, rawargs):
t = ZEOTestServer(('', test_port), storage) t = ZEOTestServer(('', test_port), storage)
serv = ZEO.StorageServer.StorageServer(('', zeo_port), {'1': storage}) serv = ZEO.StorageServer.StorageServer(('', zeo_port), {'1': storage})
import zLOG import zLOG
label = "winserver:%d" % os.getpid()
while asyncore.socket_map: while asyncore.socket_map:
zLOG.LOG("winserver", zLOG.BLATHER, "map: %r" % asyncore.socket_map) zLOG.LOG(label, zLOG.DEBUG, "map: %r" % asyncore.socket_map)
asyncore.poll(30.0) asyncore.poll(30.0)
if __name__ == "__main__": if __name__ == "__main__":
......
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