Cleanup and add a unique request ID

This commit is contained in:
Thomas Sileo
2019-08-05 22:40:24 +02:00
parent 16f4af0463
commit 5ea22edcb8
8 changed files with 86 additions and 54 deletions

View File

@@ -196,7 +196,7 @@ def task_finish_post_to_inbox() -> _Response:
except (ActivityGoneError, ActivityNotFoundError, NotAnActivityError):
app.logger.exception(f"no retry")
except Exception as err:
app.logger.exception(f"failed to cache attachments for {iri}")
app.logger.exception(f"failed to cfinish post to inbox for {iri}")
raise TaskError() from err
return ""