From 630c3b9f31adceabde6b0039979d389213c75b7f Mon Sep 17 00:00:00 2001 From: hoangtungdinh <11166240+hoangtungdinh@users.noreply.github.com> Date: Tue, 17 Sep 2024 15:23:49 +0200 Subject: [PATCH 1/2] Add exception to log Signed-off-by: hoangtungdinh <11166240+hoangtungdinh@users.noreply.github.com> --- qc_openscenario/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qc_openscenario/main.py b/qc_openscenario/main.py index 4345b4c..1016bb7 100644 --- a/qc_openscenario/main.py +++ b/qc_openscenario/main.py @@ -124,6 +124,8 @@ def execute_checker( constants.BUNDLE_NAME, checker.CHECKER_ID, f"Error: {str(e)}." ) + logging.exception(f"An error occur in {checker.CHECKER_ID}.") + def run_checks(config: Configuration, result: Result) -> None: checker_data = models.CheckerData( From 0f9cfe06ef9d3fc5f7bd078a556a6647257ff5a0 Mon Sep 17 00:00:00 2001 From: hoangtungdinh <11166240+hoangtungdinh@users.noreply.github.com> Date: Tue, 17 Sep 2024 15:27:19 +0200 Subject: [PATCH 2/2] Fix typo Signed-off-by: hoangtungdinh <11166240+hoangtungdinh@users.noreply.github.com> --- qc_openscenario/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qc_openscenario/main.py b/qc_openscenario/main.py index 1016bb7..85080cf 100644 --- a/qc_openscenario/main.py +++ b/qc_openscenario/main.py @@ -124,7 +124,7 @@ def execute_checker( constants.BUNDLE_NAME, checker.CHECKER_ID, f"Error: {str(e)}." ) - logging.exception(f"An error occur in {checker.CHECKER_ID}.") + logging.exception(f"An error occurred in {checker.CHECKER_ID}.") def run_checks(config: Configuration, result: Result) -> None: