Commit 03cf4b6b authored by Jeremy Hylton's avatar Jeremy Hylton

Add explicit log output when client fails to connect because of bad

storage id
parent 95cb9170
......@@ -83,7 +83,7 @@
#
##############################################################################
__version__ = "$Revision: 1.24 $"[11:-2]
__version__ = "$Revision: 1.25 $"[11:-2]
import asyncore, socket, string, sys, os
from smac import SizedMessageAsyncConnection
......@@ -142,6 +142,7 @@ class StorageServer(asyncore.dispatcher):
def register_connection(self, connection, storage_id):
storage=self.__storages.get(storage_id, None)
if storage is None:
LOG('ZEO Server', ERROR, "Unknown storage_id: %s" % storage_id)
connection.close()
return None, None
......
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