Skip to content

Commit

Permalink
Fix small inconsistencies (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
edeckers authored Feb 27, 2022
1 parent bec7b44 commit 8a48f27
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/huemon/commands_available/discover_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def discover(self, discovery_type):
discovery_handler_plugins = \
create_discovery_handlers(
self.api,
load_plugins("command", self.discovery_plugins_path, Discovery))
load_plugins("discovery", self.discovery_plugins_path, Discovery))
LOG.debug(
"Finished loading command plugins (path=%s)",
self.discovery_plugins_path)
Expand Down
8 changes: 5 additions & 3 deletions src/huemon/logger_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
import logging
import logging.config

DEFAULT_LOGGER_NAME = "hue"

def bootstrap_logger(config: dict):

def bootstrap_logger(config: dict, name=DEFAULT_LOGGER_NAME):
logging.config.dictConfig(config)

return create_logger()
return create_logger(name)


def create_logger(name="hue"):
def create_logger(name=DEFAULT_LOGGER_NAME):
return logging.getLogger(name)

0 comments on commit 8a48f27

Please sign in to comment.