changeset 4078:15055a00162c

refactoring: rename `sat_configure` to `libervia_configure`
author Goffi <goffi@goffi.org>
date Fri, 02 Jun 2023 18:21:15 +0200
parents d6837db456fd
children 10b6ad569157
files libervia/backend/core/log_config.py libervia/backend/test/helpers.py libervia/tui/base.py twisted/plugins/sat_plugin.py
diffstat 4 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libervia/backend/core/log_config.py	Fri Jun 02 17:38:37 2023 +0200
+++ b/libervia/backend/core/log_config.py	Fri Jun 02 18:21:15 2023 +0200
@@ -378,7 +378,7 @@
         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
--- a/libervia/backend/test/helpers.py	Fri Jun 02 17:38:37 2023 +0200
+++ b/libervia/backend/test/helpers.py	Fri Jun 02 18:21:15 2023 +0200
@@ -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
--- a/libervia/tui/base.py	Fri Jun 02 17:38:37 2023 +0200
+++ b/libervia/tui/base.py	Fri Jun 02 18:21:15 2023 +0200
@@ -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
--- a/twisted/plugins/sat_plugin.py	Fri Jun 02 17:38:37 2023 +0200
+++ b/twisted/plugins/sat_plugin.py	Fri Jun 02 18:21:15 2023 +0200
@@ -36,7 +36,7 @@
     """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):