Merge pull request #2493 from internetee/2491-verbose-truemail-logs

changed truemail logs configs
This commit is contained in:
Timo Võhmar 2022-12-01 11:04:50 +02:00 committed by GitHub
commit b176d31306
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View file

@ -58,6 +58,8 @@ module Actions
result.success = result_validation.present?
end
result.configuration = nil
contacts.find_in_batches(batch_size: 500) do |contact_batches|
contact_batches.each do |contact|
# methods should be in this order!

View file

@ -23,7 +23,7 @@ class ValidationEvent < ApplicationRecord
smtp: 1,
}.freeze
store_accessor :event_data, :errors, :check_level, :email
store_accessor :event_data, :check_level, :email
belongs_to :validation_eventable, polymorphic: true

View file

@ -83,6 +83,6 @@ Truemail.configure do |config|
# stdout, write to file or both of these. Tracking event by default is :error
# Available tracking event: :all, :unrecognized_error, :recognized_error, :error
unless Rails.env.test?
config.logger = { tracking_event: :all, stdout: true, log_absolute_path: Rails.root.join('log', 'truemail.log').to_s }
config.logger = { tracking_event: :error, stdout: true, log_absolute_path: Rails.root.join('log', 'truemail.log').to_s }
end
end