Skip to content

Commit

Permalink
remove debug logging since funders has been tested successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
wendelfabianchinsamy committed Jan 15, 2025
1 parent 83e2ca1 commit 06934e6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions app/models/concerns/importable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ def validate_prefix(doi)
end

def normalize_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}")
return nil if doi.blank?

# remove non-printing whitespace and downcase
Expand Down
4 changes: 0 additions & 4 deletions app/models/funder_identifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ def self.push_item(item)

if funder_identifier.present? && obj_id.present?
subj = cached_datacite_response(pid)
Rails.logger.info("[Event Import Worker]: Funding references subj #{subj}")
obj = cached_funder_response(obj_id)
Rails.logger.info("[Event Import Worker]: Funding references obj #{obj}")

ssum << { "message_action" => "create",
"subj_id" => pid,
Expand All @@ -89,8 +87,6 @@ def self.push_item(item)
"license" => LICENSE,
"subj" => subj,
"obj" => obj }

Rails.logger.info("[Event Import Worker]: Funding references ssum #{ssum.inspect}")
end

ssum
Expand Down

0 comments on commit 06934e6

Please sign in to comment.