mirror of
https://github.com/internetee/registry.git
synced 2025-07-30 14:36:22 +02:00
Merge pull request #2493 from internetee/2491-verbose-truemail-logs
changed truemail logs configs
This commit is contained in:
commit
b176d31306
3 changed files with 4 additions and 2 deletions
|
@ -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!
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue