Maintenance: Improved debugging experience of EmailHelper::Probe by adding more logs.
This commit is contained in:
parent
623b17be6b
commit
85bb77c551
1 changed files with 7 additions and 0 deletions
|
@ -227,6 +227,8 @@ 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
|
||||||
|
|
||||||
return {
|
return {
|
||||||
result: 'invalid',
|
result: 'invalid',
|
||||||
settings: params,
|
settings: params,
|
||||||
|
@ -341,6 +343,8 @@ 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,
|
||||||
|
@ -348,6 +352,9 @@ 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