add more logging messages

pull/17/head
Mallory Hancock 2018-01-08 12:09:18 -08:00
parent 55a8dbd87b
commit 03f3b29a40
1 changed files with 3 additions and 0 deletions

View File

@ -87,9 +87,12 @@ class Bot(irc.bot.SingleServerIRCBot):
def load_plugins(self):
# clear plugin list to ensure no old plugins remain
self.logger.info('clearing plugin cache')
pinhook.plugin.clear_plugins()
# ensure plugin folder exists
self.logger.info('checking plugin directory')
if not os.path.exists(self.plugin_dir):
self.logger.info('plugin directory {} not found, creating'.format(self.plugin_dir))
os.makedirs(self.plugin_dir)
# load all plugins
plugins = []