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 e7876ab commit 074bef1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/funder_identifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,11 @@ def self.push_item(item)
source_token = ENV["DATACITE_FUNDER_SOURCE_TOKEN"]

if funder_identifier.present? && obj_id.present?
Rails.logger.info("[Event Import Worker]: Funding references inside important if")
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 Down

0 comments on commit 074bef1

Please sign in to comment.