From fbfcae8d39a992ef2f797ac06adbbda8dcf2f599 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Thu, 6 Jun 2024 13:11:50 +1200 Subject: [PATCH] better logging of which url was being POSTed to #175 --- app/activitypub/signature.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/activitypub/signature.py b/app/activitypub/signature.py index fb586b30..cb10c23e 100644 --- a/app/activitypub/signature.py +++ b/app/activitypub/signature.py @@ -104,7 +104,7 @@ def post_request(uri: str, body: dict | None, private_key: str, key_id: str, con if result.status_code != 200 and result.status_code != 202 and result.status_code != 204: log.result = 'failure' log.exception_message += f' Response status code was {result.status_code}' - current_app.logger.error('Response code for post attempt was ' + + current_app.logger.error(f'Response code for post attempt to {uri} was ' + str(result.status_code) + ' ' + result.text) log.exception_message += uri if result.status_code == 202: