Don't log successful json - save space

This commit is contained in:
rimu 2024-06-23 20:34:53 +08:00
parent 50bde3ebaf
commit a499440374

View file

@ -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()