diff --git a/app/jobs/transfer_job.rb b/app/jobs/transfer_job.rb index f11b46675..d37a0e080 100644 --- a/app/jobs/transfer_job.rb +++ b/app/jobs/transfer_job.rb @@ -14,7 +14,7 @@ def perform(doi_id, options={}) doi.__elasticsearch__.index_document - Rails.logger.warn "[Transfer] Transferred DOI #{doi.doi}." + Rails.logger.info "[Transfer] Transferred DOI #{doi.doi}." elsif doi.present? Rails.logger.error "[Transfer] Error transferring DOI " + doi_id + ": no target client" else diff --git a/app/models/doi.rb b/app/models/doi.rb index f9f4e1a71..f77706984 100644 --- a/app/models/doi.rb +++ b/app/models/doi.rb @@ -1027,12 +1027,13 @@ def self.import_by_client(client_id: nil) end count += dois.length + Rails.logger.info "[Elasticsearch] Imported #{count} DOIs for client #{client_id}." end if errors > 1 Rails.logger.error "[Elasticsearch] #{errors} errors importing #{count} DOIs for client #{client_id}." elsif count > 0 - Rails.logger.warn "[Elasticsearch] Imported #{count} DOIs for client #{client_id}." + Rails.logger.info "[Elasticsearch] Imported a total of #{count} DOIs for client #{client_id}." end count @@ -1851,7 +1852,7 @@ def self.transfer(options={}) Rails.logger.info "[Transfer] Transferring #{response.results.results.length} DOIs starting with _id #{response.results.to_a.first[:_id]}." cursor = response.results.to_a.last[:sort] - + Rails.logger.info cursor response.results.results.each do |d| TransferJob.perform_later(d.doi, client_target_id: options[:client_target_id]) end