mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
better logging of which url was being POSTed to #175
This commit is contained in:
parent
92788416e8
commit
fbfcae8d39
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue