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 14, 2025
1 parent b2a0f55 commit 83e2ca1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/concerns/importable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ def validate_prefix(doi)
end

def normalize_doi(doi)
Rails.logger.info("[Event Import Worker: normalize doi]")
Rails.logger.info("[Event Import Worker: normalize doi -> doi = #{doi}]")
Rails.logger.info("[Event Import Worker]: normalize doi method")
Rails.logger.info("[Event Import Worker]: normalize doi -> doi = #{doi}")
doi = validate_doi(doi)
Rails.logger.info("[Event Import Worker: normalize doi (After validation) -> doi = #{doi}]")
Rails.logger.info("[Event Import Worker]: normalize doi (After validation) -> doi = #{doi}")
return nil if doi.blank?

# remove non-printing whitespace and downcase
Expand Down

0 comments on commit 83e2ca1

Please sign in to comment.