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 13, 2025
1 parent 5e60deb commit a38927b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions app/models/related_identifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,7 @@ def self.push_item(item)
doi = attributes.fetch("doi", nil)
Rails.logger.info("Related Identifier: doi -> #{doi.inspect}")

if doi.blank?
Rails.logger.info("[Related Identifier: doi is blank]")
end

if cached_doi_ra(doi) == "DataCite"
Rails.logger.info("[Related Identifier: doi is #{cached_doi_ra(doi)}]")
Rails.logger.info("[Related Identifier: cached doi ra is datacite]")
end
Rails.logger.info("[Related Identifier: cached_doi_ra #{cached_doi_ra(doi)}]")

return nil unless doi.present? && cached_doi_ra(doi) == "DataCite"

Expand Down

0 comments on commit a38927b

Please sign in to comment.