mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[mod] unify all subloggers under moulinette.core
This commit is contained in:
parent
cf98095303
commit
10576f7138
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.actionsmap")
|
||||
logger = logging.getLogger("moulinette.core")
|
||||
|
||||
|
||||
# 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.authenticator")
|
||||
logger = logging.getLogger("moulinette.core")
|
||||
|
||||
|
||||
# Base Class -----------------------------------------------------------
|
||||
|
|
|
@ -4,7 +4,7 @@ import logging
|
|||
from moulinette.core import MoulinetteError
|
||||
from moulinette.authenticators import BaseAuthenticator
|
||||
|
||||
logger = logging.getLogger("moulinette.authenticator.dummy")
|
||||
logger = logging.getLogger("moulinette.core")
|
||||
|
||||
# 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.authenticator.ldap")
|
||||
logger = logging.getLogger("moulinette.core")
|
||||
|
||||
# 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.interface")
|
||||
logger = logging.getLogger("moulinette.core")
|
||||
|
||||
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.exception("invalid item in the messages queue: %r", item)
|
||||
logger.error("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.cli")
|
||||
logger = log.getLogger("moulinette.core")
|
||||
|
||||
|
||||
# CLI helpers ----------------------------------------------------------
|
||||
|
|
|
@ -2,7 +2,7 @@ import logging
|
|||
from json.encoder import JSONEncoder
|
||||
import datetime
|
||||
|
||||
logger = logging.getLogger("moulinette.utils.serialize")
|
||||
logger = logging.getLogger("moulinette.core")
|
||||
|
||||
|
||||
# JSON utilities -------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue