Follow up - 85bb77c551
- Maintenance: Improved debugging experience of EmailHelper::Probe by adding more logs.
This commit is contained in:
parent
205105fd47
commit
9269385acd
1 changed files with 3 additions and 5 deletions
|
@ -227,7 +227,7 @@ returns on fail
|
||||||
driver_instance = driver_class.new
|
driver_instance = driver_class.new
|
||||||
result_inbound = driver_instance.fetch(params[:options], nil, 'check')
|
result_inbound = driver_instance.fetch(params[:options], nil, 'check')
|
||||||
rescue => e
|
rescue => e
|
||||||
Rails.logger.error e
|
Rails.logger.debug { e }
|
||||||
|
|
||||||
return {
|
return {
|
||||||
result: 'invalid',
|
result: 'invalid',
|
||||||
|
@ -333,6 +333,8 @@ returns on fail
|
||||||
mail,
|
mail,
|
||||||
)
|
)
|
||||||
rescue => e
|
rescue => e
|
||||||
|
Rails.logger.debug { e }
|
||||||
|
|
||||||
# check if sending email was ok, but mailserver rejected
|
# check if sending email was ok, but mailserver rejected
|
||||||
if !subject
|
if !subject
|
||||||
white_map = {
|
white_map = {
|
||||||
|
@ -343,8 +345,6 @@ returns on fail
|
||||||
|
|
||||||
next if !e.message.match?(/#{Regexp.escape(key)}/i)
|
next if !e.message.match?(/#{Regexp.escape(key)}/i)
|
||||||
|
|
||||||
Rails.logger.info e
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
result: 'ok',
|
result: 'ok',
|
||||||
settings: params,
|
settings: params,
|
||||||
|
@ -353,8 +353,6 @@ returns on fail
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
Rails.logger.error e
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
result: 'invalid',
|
result: 'invalid',
|
||||||
settings: params,
|
settings: params,
|
||||||
|
|
Loading…
Reference in a new issue