File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -72,8 +72,13 @@ def __call__(self, force_reload: bool = False) -> OpenEoBackendConfig:
72
72
73
73
def get (self , force_reload : bool = False ) -> OpenEoBackendConfig :
74
74
"""Lazy load the config."""
75
- if self ._config is None or force_reload :
75
+ if self ._config is None :
76
+ logging .info ("lazy load config" )
76
77
self ._config = self ._load ()
78
+ elif force_reload :
79
+ logging .info ("force reload config" )
80
+ self ._config = self ._load ()
81
+
77
82
return self ._config
78
83
79
84
def _default_config (self ) -> ContextManager [Path ]:
@@ -88,7 +93,7 @@ def _load(self) -> OpenEoBackendConfig:
88
93
config_path = os .environ .get (self .OPENEO_BACKEND_CONFIG ) or default_config
89
94
config = load_from_py_file (path = config_path , variable = "config" , expected_class = self .expected_class )
90
95
if hasattr (config , "id" ):
91
- _log .debug (f"Loaded config { config .id = } " )
96
+ _log .info (f"Loaded config { config .id = } " )
92
97
return config
93
98
94
99
def flush (self ):
You can’t perform that action at this time.
0 commit comments