Module: logging cleanup, add logging on unload

This commit is contained in:
Brian S. Stephan 2012-07-15 21:48:49 -05:00
parent 92555867f5
commit 61ceef6a88
1 changed files with 2 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class Module(object):
self.db_init()
# print what was loaded, for debugging
self.log.debug("loaded " + self.__class__.__name__)
self.log.debug("Loaded " + self.__class__.__name__)
def register_handlers(self):
"""Hook handler functions into the IRC library. This is called when the
@ -148,6 +148,7 @@ class Module(object):
"""
self.is_shutdown = True
self.log.debug("Unloading " + self.__class__.__name__)
def remove_metaoptions(self, list):
"""Remove metaoptions from provided list, which was probably from a config file."""