Skip to content

Commit

Permalink
Change logging level and add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
zpriddy committed Feb 19, 2020
1 parent 4d1b3e7 commit 63b2e8d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/glados/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(
self.plugins_folder = plugins_folder # type: str
self.bots_config_dir = bots_config_dir # type: str
self.plugins_config_dir = plugins_config_dir # type: str
self.logging_level = logging.getLevelName("WARN")
self.logging_level = logging.getLevelName("DEBUG")
self.logging_format = "%(asctime)s :: %(levelname)-8s :: [%(filename)s:%(lineno)s :: %(funcName)s() ] %(message)s"
self.global_config = None

Expand Down Expand Up @@ -90,6 +90,10 @@ def import_plugins(self, bot_name=None):

# Remove unused bots if a bot name is provided.
# This will cause a bunch of warnings of bots not existing. This is expected.
# TODO(zpriddy): This should not remove the bots from the global bots.
# It should also check to see if plugins are already installed before
# installing them. This is key for AWS Lambda caching issues.

if bot_name:
bots = self.bots.copy() # type: dict
for b_name, b_config in self.bots.items():
Expand Down

0 comments on commit 63b2e8d

Please sign in to comment.