Fix Scheduler::SubscriptionsScheduler (#2834)
* Fix Scheduler::SubscriptionsScheduler, add worker test for it * Change production log level of Sidekiq to "warn" instead of "info"
This commit is contained in:
@ -25,7 +25,7 @@ class Pubsubhubbub::ConfirmationWorker
|
||||
|
||||
body = response.body.to_s
|
||||
|
||||
Rails.logger.debug "Confirming PuSH subscription for #{subscription.callback_url} with challenge #{challenge}: #{body}"
|
||||
logger.debug "Confirming PuSH subscription for #{subscription.callback_url} with challenge #{challenge}: #{body}"
|
||||
|
||||
if mode == 'subscribe' && body == challenge
|
||||
subscription.save!
|
||||
|
@ -7,7 +7,7 @@ class Pubsubhubbub::SubscribeWorker
|
||||
|
||||
def perform(account_id)
|
||||
account = Account.find(account_id)
|
||||
Rails.logger.debug "PuSH re-subscribing to #{account.acct}"
|
||||
logger.debug "PuSH re-subscribing to #{account.acct}"
|
||||
::SubscribeService.new.call(account)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user