Skip to content

Commit

Permalink
added more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed Nov 25, 2024
1 parent 88d7689 commit 7f6c4f2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/models/contact/company_register.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,14 @@ def return_company_status
end

def return_company_data
Rails.logger.info "inside return_company_data"
Rails.logger.info "ident: #{ident}"
Rails.logger.info "org?: #{org?}"
return unless org?

company_register.simple_data(registration_number: ident.to_s)
res = company_register.simple_data(registration_number: ident.to_s)
Rails.logger.info "res: #{res.inspect}"
res
rescue CompanyRegister::NotAvailableError
Rails.logger.info "ERROR HAPPENED: CompanyRegister::NotAvailableError"
[]
Expand Down

0 comments on commit 7f6c4f2

Please sign in to comment.