From b5d28a00049fd422f85d7937df10486b1eafd5eb Mon Sep 17 00:00:00 2001 From: Hoang Tung Dinh Date: Tue, 17 Sep 2024 15:25:16 +0200 Subject: [PATCH] Add exception logging (#100) Signed-off-by: hoangtungdinh <11166240+hoangtungdinh@users.noreply.github.com> Co-authored-by: hoangtungdinh <11166240+hoangtungdinh@users.noreply.github.com> --- qc_opendrive/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qc_opendrive/main.py b/qc_opendrive/main.py index e3a68d1..f6dfc1c 100644 --- a/qc_opendrive/main.py +++ b/qc_opendrive/main.py @@ -122,6 +122,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(