From d14c6f3e52428e42ee550df8224989f432a345b4 Mon Sep 17 00:00:00 2001 From: eidens <8000058+eidens@users.noreply.github.com> Date: Wed, 10 Sep 2025 17:39:42 +0200 Subject: [PATCH] Add stacktrace to logging in top-level exception-handling --- src/soda_curation/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soda_curation/main.py b/src/soda_curation/main.py index 3ecc7b5..20f548f 100755 --- a/src/soda_curation/main.py +++ b/src/soda_curation/main.py @@ -228,7 +228,7 @@ def main(zip_path: str, config_path: str, output_path: Optional[str] = None) -> return output_json except Exception as e: - logger.error(f"Pipeline failed: {str(e)}") + logger.error(f"Pipeline failed: {str(e)}", exc_info=True) error_json = json.dumps({"error": str(e)}) if output_path: output_dir = Path(output_path).parent @@ -237,7 +237,7 @@ def main(zip_path: str, config_path: str, output_path: Optional[str] = None) -> f.write(error_json) return error_json except Exception as e: - logger.exception(f"Pipeline failed: {str(e)}") + logger.exception(f"Pipeline failed: {str(e)}", exc_info=True) return json.dumps({"error": str(e)}) finally: