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 9c44d1b commit 9b8829d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/concerns/importable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +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}]")
doi = validate_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 9b8829d

Please sign in to comment.