From cac0fdb55b3b5156f5a96b8b3e73a6763b08af44 Mon Sep 17 00:00:00 2001 From: gharvey Date: Thu, 19 Sep 2024 15:28:57 -0700 Subject: [PATCH] Returns logging --- src/leapfrogai_api/utils/config.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/leapfrogai_api/utils/config.py b/src/leapfrogai_api/utils/config.py index 8de15a7f59..440e20c59c 100644 --- a/src/leapfrogai_api/utils/config.py +++ b/src/leapfrogai_api/utils/config.py @@ -33,12 +33,17 @@ def process(self, event): return filename = os.path.basename(event.src_path) + logger.debug(f"Processing event '{event.event_type}' for file '{filename}'") # Check if the file matches the config filename or pattern if fnmatch.fnmatch(filename, self.config.filename): if event.event_type == "deleted": + logger.info(f"Detected deletion of config file '{filename}'") self.config.remove_model_by_config(filename) else: + logger.info( + f"Detected modification/creation of config file '{filename}'" + ) self.config.load_config_file(self.config.directory, filename)