log activity pub messages to error log

This commit is contained in:
Sebastian Jambor 2022-11-21 16:10:14 +01:00
parent 4b9e4f6398
commit 4f371a6306
2 changed files with 5 additions and 0 deletions

View file

@ -25,6 +25,8 @@ class ActivityPub::DeliveryWorker
def perform(json, source_account_id, inbox_url, options = {})
return unless DeliveryFailureTracker.available?(inbox_url)
Rails.logger.error "=====PUSH===== #{json}"
@options = options.with_indifferent_access
@json = json
@source_account = Account.find(source_account_id)

View file

@ -6,6 +6,9 @@ class ActivityPub::ProcessingWorker
sidekiq_options queue: 'ingress', backtrace: true, retry: 8
def perform(actor_id, body, delivered_to_account_id = nil, actor_type = 'Account')
Rails.logger.error "=====INGRESS===== #{body}"
case actor_type
when 'Account'
actor = Account.find_by(id: actor_id)