diff --git a/moulinette/actionsmap.py b/moulinette/actionsmap.py index 1b716074..d36c59f7 100644 --- a/moulinette/actionsmap.py +++ b/moulinette/actionsmap.py @@ -18,7 +18,7 @@ from moulinette.core import MoulinetteError, MoulinetteLock from moulinette.interfaces import BaseActionsMapParser, GLOBAL_SECTION, TO_RETURN_PROP from moulinette.utils.log import start_action_logging -logger = logging.getLogger("moulinette.core") +logger = logging.getLogger("moulinette.actionsmap") # Extra parameters ---------------------------------------------------- diff --git a/moulinette/authenticators/__init__.py b/moulinette/authenticators/__init__.py index 1db09f4d..0170d345 100644 --- a/moulinette/authenticators/__init__.py +++ b/moulinette/authenticators/__init__.py @@ -8,7 +8,7 @@ import hmac from moulinette.cache import open_cachefile, get_cachedir, cachefile_exists from moulinette.core import MoulinetteError -logger = logging.getLogger("moulinette.core") +logger = logging.getLogger("moulinette.authenticator") # Base Class ----------------------------------------------------------- diff --git a/moulinette/authenticators/dummy.py b/moulinette/authenticators/dummy.py index b397b854..e2978d12 100644 --- a/moulinette/authenticators/dummy.py +++ b/moulinette/authenticators/dummy.py @@ -4,7 +4,7 @@ import logging from moulinette.core import MoulinetteError from moulinette.authenticators import BaseAuthenticator -logger = logging.getLogger("moulinette.core") +logger = logging.getLogger("moulinette.authenticator.dummy") # Dummy authenticator implementation diff --git a/moulinette/authenticators/ldap.py b/moulinette/authenticators/ldap.py index a1ecb43d..13c635a3 100644 --- a/moulinette/authenticators/ldap.py +++ b/moulinette/authenticators/ldap.py @@ -13,7 +13,7 @@ from moulinette import m18n from moulinette.core import MoulinetteError, MoulinetteLdapIsDownError from moulinette.authenticators import BaseAuthenticator -logger = logging.getLogger("moulinette.core") +logger = logging.getLogger("moulinette.authenticator.ldap") # LDAP Class Implementation -------------------------------------------- diff --git a/moulinette/interfaces/__init__.py b/moulinette/interfaces/__init__.py index 77851b07..a73bc5f6 100644 --- a/moulinette/interfaces/__init__.py +++ b/moulinette/interfaces/__init__.py @@ -9,7 +9,7 @@ from collections import deque, OrderedDict from moulinette import msettings, m18n from moulinette.core import MoulinetteError -logger = logging.getLogger("moulinette.core") +logger = logging.getLogger("moulinette.interface") GLOBAL_SECTION = "_global" TO_RETURN_PROP = "_to_return" diff --git a/moulinette/interfaces/api.py b/moulinette/interfaces/api.py index e2103260..5d3d170c 100644 --- a/moulinette/interfaces/api.py +++ b/moulinette/interfaces/api.py @@ -460,7 +460,7 @@ class _ActionsMapPlugin(object): # Delete the current queue and break del self.log_queues[s_id] break - logger.error("invalid item in the messages queue: %r", item) + logger.exception("invalid item in the messages queue: %r", item) else: try: # Send the message diff --git a/moulinette/interfaces/cli.py b/moulinette/interfaces/cli.py index 0c36804b..19505365 100644 --- a/moulinette/interfaces/cli.py +++ b/moulinette/interfaces/cli.py @@ -53,7 +53,7 @@ def monkey_get_action_name(argument): argparse._get_action_name = monkey_get_action_name -logger = log.getLogger("moulinette.core") +logger = log.getLogger("moulinette.cli") # CLI helpers ---------------------------------------------------------- diff --git a/moulinette/utils/serialize.py b/moulinette/utils/serialize.py index 3446c467..345cb4d4 100644 --- a/moulinette/utils/serialize.py +++ b/moulinette/utils/serialize.py @@ -2,7 +2,7 @@ import logging from json.encoder import JSONEncoder import datetime -logger = logging.getLogger("moulinette.core") +logger = logging.getLogger("moulinette.utils.serialize") # JSON utilities -------------------------------------------------------