Log actual exception
This commit is contained in:
parent
22cc82641c
commit
a8a53e1b54
@ -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(
|
||||
|
@ -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},
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user