Skip to content

Commit

Permalink
feature: add log filepath on exit error
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Dec 28, 2023
1 parent 1acb509 commit 2dcefa5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions qgis_deployment_toolbelt/utils/bouncer.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
import logging
import sys

# project
from qgis_deployment_toolbelt.utils.journalizer import get_logger_filepath

# #############################################################################
# ########## Globals ###############
# ##################################
Expand All @@ -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):
Expand Down

0 comments on commit 2dcefa5

Please sign in to comment.