From 9b8829d7ee647bd640b3b24e554ef78a737747a8 Mon Sep 17 00:00:00 2001 From: Wendel Fabian Chinsamy Date: Tue, 14 Jan 2025 15:17:02 +0200 Subject: [PATCH] add logging for debugging --- app/models/concerns/importable.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/models/concerns/importable.rb b/app/models/concerns/importable.rb index d0f1c53..b4da63b 100644 --- a/app/models/concerns/importable.rb +++ b/app/models/concerns/importable.rb @@ -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