From 9b09299155c07aed756e0e1761923d1d339b61ca Mon Sep 17 00:00:00 2001 From: "Julien M." Date: Thu, 28 Dec 2023 12:51:39 +0100 Subject: [PATCH] feature: add log filepath on exit error --- qgis_deployment_toolbelt/utils/bouncer.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qgis_deployment_toolbelt/utils/bouncer.py b/qgis_deployment_toolbelt/utils/bouncer.py index ff6520f0..ba55b5bb 100644 --- a/qgis_deployment_toolbelt/utils/bouncer.py +++ b/qgis_deployment_toolbelt/utils/bouncer.py @@ -14,6 +14,9 @@ import logging import sys +# project +from qgis_deployment_toolbelt.utils.journalizer import get_logger_filepath + # ############################################################################# # ########## Globals ############### # ################################## @@ -38,6 +41,7 @@ def exit_cli_error(message: str | Exception, abort: bool = True): """ # log logger.error(message, exc_info=True) + logger.error(f"Please, read the full detailed log: {get_logger_filepath()}") # handle cases when the full exception is passed if isinstance(message, Exception):