From 9c44d1b75ddaee7bbb5605e7b2cb38040905b250 Mon Sep 17 00:00:00 2001
From: Wendel Fabian Chinsamy <wendel.chinsamy@datacite.org>
Date: Tue, 14 Jan 2025 15:12:02 +0200
Subject: [PATCH] add logging for debugging

---
 app/models/funder_identifier.rb | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/app/models/funder_identifier.rb b/app/models/funder_identifier.rb
index 0a71007..90b7289 100644
--- a/app/models/funder_identifier.rb
+++ b/app/models/funder_identifier.rb
@@ -64,24 +64,15 @@ def self.push_item(item)
     end
 
     push_items = Array.wrap(funder_identifiers).reduce([]) do |ssum, iitem|
-      Rails.logger.info("[Event Import Worker]: Funding references inside push_items")
-
       funder_identifier = iitem.fetch("funderIdentifier",
                                       nil).to_s.strip.downcase
-
-      Rails.logger.info("[Event Import Worker]: Funding references funder_identifier #{funder_identifier}")
-
-      obj_id = normalize_doi(funder_identifier)
-
-      Rails.logger.info("[Event Import Worker]: Funding references obj_id #{obj_id}")
+      # obj_id = normalize_doi(funder_identifier)
+      obj_id = "https://doi.org/10.4224/17210691"
 
       relation_type_id = "is_funded_by"
       source_id = "datacite_funder"
       source_token = ENV["DATACITE_FUNDER_SOURCE_TOKEN"]
 
-      Rails.logger.info("[Event Import Worker]: Funding references funder_identifier #{funder_identifier.present?}")
-      Rails.logger.info("[Event Import Worker]: Funding references obj_id #{obj_id.present?}")
-
       if funder_identifier.present? && obj_id.present?
         subj = cached_datacite_response(pid)
         Rails.logger.info("[Event Import Worker]: Funding references subj #{subj}")