Revert "[mod] unify all subloggers under moulinette.core"

This reverts commit c88f127b8c691c6121229402be4375fdc62ed6bf.
This commit is contained in:
Alexandre Aubin 2021-01-31 16:06:33 +01:00
parent 9a35d77a08
commit e7a01c68f5
8 changed files with 8 additions and 8 deletions

View file

@ -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 ----------------------------------------------------

View file

@ -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 -----------------------------------------------------------

View file

@ -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

View file

@ -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 --------------------------------------------

View file

@ -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"

View file

@ -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

View file

@ -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 ----------------------------------------------------------

View file

@ -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 -------------------------------------------------------