Skip to content

Commit

Permalink
add logging for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
wendelfabianchinsamy committed Jan 17, 2025
1 parent baab680 commit e4ab716
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,11 @@ def self.get_datacite_json(id)
end

url = ENV["API_URL"] + "/dois/#{doi}?affiliation=true"
Rails.logger.info("[EventImportWorker]: get_datacite_json #{url}")
response = Maremma.get(url)

if response.status != 200
Rails.logger.info("[EventImportWorker]: response failed: #{response.inspect}")
Rails.logger.info "DOI #{doi} not found"
return {}
end
Expand Down

0 comments on commit e4ab716

Please sign in to comment.