refactoring: rename sat_configure to libervia_configure
This commit is contained in:
parent
7e3834a5e9
commit
4678449f76
4 changed files with 4 additions and 4 deletions
|
|
@ -378,7 +378,7 @@ def _parse_options(options):
|
|||
options[LEVEL] = level
|
||||
|
||||
|
||||
def sat_configure(backend=C.LOG_BACKEND_STANDARD, const=None, backend_data=None):
|
||||
def libervia_configure(backend=C.LOG_BACKEND_STANDARD, const=None, backend_data=None):
|
||||
"""Configure logging system for SàT, can be used by frontends
|
||||
|
||||
logs conf is read in SàT conf, then in environment variables. It must be done before Memory init
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
## logging configuration for tests ##
|
||||
from libervia.backend.core import log_config
|
||||
log_config.sat_configure()
|
||||
log_config.libervia_configure()
|
||||
|
||||
import logging
|
||||
from libervia.backend.core.log import getLogger
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
from libervia.backend.core.i18n import _, D_
|
||||
from libervia.tui.constants import Const as C
|
||||
from libervia.backend.core import log_config
|
||||
log_config.sat_configure(C.LOG_BACKEND_STANDARD, C)
|
||||
log_config.libervia_configure(C.LOG_BACKEND_STANDARD, C)
|
||||
from libervia.backend.core import log as logging
|
||||
log = logging.getLogger(__name__)
|
||||
from libervia.backend.tools import config as sat_config
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ def initialise(options):
|
|||
"""Method to initialise global modules"""
|
||||
# XXX: We need to configure logs before any log method is used, so here is the best place.
|
||||
from libervia.backend.core import log_config
|
||||
log_config.sat_configure(C.LOG_BACKEND_TWISTED, C, backend_data=options)
|
||||
log_config.libervia_configure(C.LOG_BACKEND_TWISTED, C, backend_data=options)
|
||||
|
||||
|
||||
class Options(usage.Options):
|
||||
|
|
|
|||
Loading…
Reference in a new issue