From c7a095bf6ba8871ca723c9cae9e8225f0b7ca6fe Mon Sep 17 00:00:00 2001 From: Stefaan Lippens Date: Tue, 6 Feb 2024 09:51:59 +0100 Subject: [PATCH] Issue #112 minor logging tweak --- src/openeo_aggregator/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openeo_aggregator/config.py b/src/openeo_aggregator/config.py index 5f3465a6..8a654486 100644 --- a/src/openeo_aggregator/config.py +++ b/src/openeo_aggregator/config.py @@ -67,7 +67,7 @@ class AggregatorConfig(dict): def from_py_file(path: Union[str, Path]) -> 'AggregatorConfig': """Load config from Python file.""" path = Path(path) - _log.info(f"Loading config from Python file {path}") + _log.debug(f"Loading config from Python file {path}") # Based on flask's Config.from_pyfile with path.open(mode="rb") as f: code = compile(f.read(), path, "exec") @@ -76,6 +76,7 @@ def from_py_file(path: Union[str, Path]) -> 'AggregatorConfig': for var_name in ["aggregator_config", "config"]: if var_name in globals: config = globals[var_name] + _log.info(f"Loaded config from {path=} {var_name=}") break else: raise ConfigException(f"No 'config' variable defined in config file {path}")