Log actual exception

This commit is contained in:
shamoon 2024-01-09 10:41:29 -08:00
parent 22cc82641c
commit a8a53e1b54
2 changed files with 3 additions and 3 deletions

View File

@ -730,9 +730,9 @@ class Consumer(LoggingMixin):
if self.override_title is not None:
try:
title = self._parse_title_placeholders(self.override_title)
except Exception:
except Exception as e:
self.log.error(
f"Error occurred parsing title override '{self.override_title}', falling back to original",
f"Error occurred parsing title override '{self.override_title}', falling back to original. Exception: {e}",
)
document = Document.objects.create(

View File

@ -587,7 +587,7 @@ def run_workflow(
document.created,
)
except Exception:
logger.error(
logger.exception(
f"Error occurred parsing title assignment '{action.assign_title}', falling back to original",
extra={"group": logging_group},
)