mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-03 00:31:25 -08:00
Don't log successful json - save space
This commit is contained in:
parent
50bde3ebaf
commit
a499440374
1 changed files with 3 additions and 0 deletions
|
@ -1149,6 +1149,9 @@ def process_inbox_request(request_json, activitypublog_id, ip_address):
|
|||
|
||||
if activity_log.exception_message is not None and activity_log.result == 'processing':
|
||||
activity_log.result = 'failure'
|
||||
# Don't log successful json - save space
|
||||
if site.log_activitypub_json and activity_log.result == 'success':
|
||||
activity_log.activity_json = ''
|
||||
db.session.commit()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue