mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 07:04:47 +02:00
Add logging to email_verification.log
This commit is contained in:
parent
57cd588eee
commit
b0332a7abd
2 changed files with 3 additions and 3 deletions
|
@ -24,7 +24,7 @@ class VerifyEmailsJob < Que::Job
|
|||
end
|
||||
|
||||
def logger
|
||||
Rails.logger
|
||||
@logger ||= Logger.new(Rails.root.join('log', 'email_verification.log'))
|
||||
end
|
||||
|
||||
def log_success(verification)
|
||||
|
|
|
@ -14,10 +14,10 @@ namespace :verify_email do
|
|||
# Default 'bundle exec rake verify_email:domain' wil use 'internet.ee' domain
|
||||
desc 'Stars verifying email jobs for domain stated in argument'
|
||||
task :domain, [:domain_name] => [:environment] do |_task, args|
|
||||
args.with_defaults(domain_name: "internet.ee")
|
||||
args.with_defaults(domain_name: 'internet.ee')
|
||||
|
||||
verifications_by_domain = EmailAddressVerification.not_verified_recently
|
||||
.by_domain(args[:domain_name])
|
||||
verifications_by_domain.map{ |ver| VerifyEmailsJob.enqueue(ver.id) }
|
||||
verifications_by_domain.map { |ver| VerifyEmailsJob.enqueue(ver.id) }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue