print name of module that was loaded in __init__

This commit is contained in:
Brian S. Stephan 2010-07-29 19:50:13 -05:00
parent f7cb0fd05a
commit 21963fe580
1 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,9 @@ class Module(object):
# Should do some error handling here.
self.rehash = rehash # Is there another way to call the rehash function in dr.botzo?
# print what was loaded, for debugging
print("loaded " + self.__class__.__name__)
# This is called by __init__ and sets up server.add_global_handlers. Classes
# inheriting from Module should implement this and set up the appropriate handlers,
# e.g.: