From 85bb77c551a012c43dfecedbf2bd50c360875ee0 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Fri, 2 Oct 2020 09:28:00 +0200 Subject: [PATCH] Maintenance: Improved debugging experience of EmailHelper::Probe by adding more logs. --- lib/email_helper/probe.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/email_helper/probe.rb b/lib/email_helper/probe.rb index 5506a7f07..14b65fd1d 100644 --- a/lib/email_helper/probe.rb +++ b/lib/email_helper/probe.rb @@ -227,6 +227,8 @@ returns on fail driver_instance = driver_class.new result_inbound = driver_instance.fetch(params[:options], nil, 'check') rescue => e + Rails.logger.error e + return { result: 'invalid', settings: params, @@ -341,6 +343,8 @@ returns on fail next if !e.message.match?(/#{Regexp.escape(key)}/i) + Rails.logger.info e + return { result: 'ok', settings: params, @@ -348,6 +352,9 @@ returns on fail } end end + + Rails.logger.error e + return { result: 'invalid', settings: params,