mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Revert "[mod] unify all subloggers under moulinette.core"
This reverts commit c88f127b8c691c6121229402be4375fdc62ed6bf.
This commit is contained in:
parent
9a35d77a08
commit
e7a01c68f5
8 changed files with 8 additions and 8 deletions
|
@ -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 ----------------------------------------------------
|
||||
|
|
|
@ -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 -----------------------------------------------------------
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 --------------------------------------------
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 ----------------------------------------------------------
|
||||
|
|
|
@ -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 -------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue