From 2df047a18ce384d396fef83d83d3c2149e92bb4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Diot?= Date: Fri, 3 May 2024 11:23:03 +0200 Subject: [PATCH] chore: Add error logging for generating custom configs and external plugins --- src/scheduler/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/scheduler/main.py b/src/scheduler/main.py index ed4167e30..e5c30e189 100644 --- a/src/scheduler/main.py +++ b/src/scheduler/main.py @@ -138,6 +138,7 @@ def generate_custom_configs(configs: List[Dict[str, Any]], *, original_path: Uni tmp_path.parent.mkdir(parents=True, exist_ok=True) tmp_path.write_bytes(custom_config["data"]) except OSError as e: + logger.debug(format_exc()) if custom_config["method"] != "manual": logger.error( f"Error while generating custom configs \"{custom_config['name']}\"{' for service ' + custom_config['service_id'] if custom_config['service_id'] else ''}: {e}" @@ -189,6 +190,7 @@ def generate_external_plugins(plugins: List[Dict[str, Any]], *, original_path: U for job_file in chain(original_path.joinpath(plugin["id"], "jobs").glob("*"), original_path.joinpath(plugin["id"], "bwcli").glob("*")): job_file.chmod(job_file.stat().st_mode | S_IEXEC) except OSError as e: + logger.debug(format_exc()) if plugin["method"] != "manual": logger.error(f"Error while generating {'pro ' if pro else ''}external plugins \"{plugin['name']}\": {e}") except BaseException as e: