Better plugin logging
This commit is contained in:
parent
600cba1631
commit
3522aac776
1 changed files with 1 additions and 1 deletions
|
@ -124,8 +124,8 @@ class RtmBot(object):
|
|||
sys.path.insert(0, plugin_dir)
|
||||
for plugin in glob.glob(os.path.join(plugin_dir, '*.py')) + \
|
||||
glob.glob(os.path.join(plugin_dir, '*', '*.py')):
|
||||
logging.info(plugin)
|
||||
name = plugin.split(os.sep)[-1][:-3]
|
||||
logging.info('Plugin %s: %s', name, plugin)
|
||||
if name in self.config:
|
||||
logging.info("config found for: " + name)
|
||||
plugin_config = self.config.get(name, {})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue