From 9a683a7ff4cdcbabc550cf42c5bc84406cf2d8d7 Mon Sep 17 00:00:00 2001 From: Jonathan Green Date: Mon, 2 Oct 2023 12:08:44 -0300 Subject: [PATCH] Add some helpful comments. --- core/scripts.py | 2 ++ scripts.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/core/scripts.py b/core/scripts.py index e5b0cb2786..8e6f66eb58 100644 --- a/core/scripts.py +++ b/core/scripts.py @@ -125,6 +125,8 @@ def __init__(self, _db=None, services: Optional[Services] = None, *args, **kwarg self._session = _db self._services = container_instance() if services is None else services + + # Call init_resources() to initialize the logging configuration. self._services.init_resources() def run(self): diff --git a/scripts.py b/scripts.py index 5095924507..fb563518a8 100644 --- a/scripts.py +++ b/scripts.py @@ -818,6 +818,8 @@ class InstanceInitializationScript: def __init__(self) -> None: self._log: Optional[logging.Logger] = None self._container = container_instance() + + # Call init_resources() to initialize the logging configuration. self._container.init_resources() @property