chore: log errors from context.dev (#14310)
This PR updates the way we log errors and results from context.dev to have better visibility on the enrichment process for onboarding
This commit is contained in:
@@ -3,7 +3,10 @@ class Account::BrandingEnrichmentJob < ApplicationJob
|
||||
|
||||
def perform(account_id, email)
|
||||
result = WebsiteBrandingService.new(email).perform
|
||||
return if result.blank?
|
||||
if result.blank?
|
||||
Rails.logger.info "[BrandingEnrichment] Enrichment failed for account=#{account_id} email=#{email}"
|
||||
return
|
||||
end
|
||||
|
||||
account = Account.find(account_id)
|
||||
account.name = result[:title] if result[:title].present?
|
||||
|
||||
Reference in New Issue
Block a user