diff --git a/app/models/alma_submit_collection/marc_record.rb b/app/models/alma_submit_collection/marc_record.rb index 3223f28d..28c1028e 100644 --- a/app/models/alma_submit_collection/marc_record.rb +++ b/app/models/alma_submit_collection/marc_record.rb @@ -52,6 +52,7 @@ def record_fixes end def constituent_records + Rails.logger.debug("SubmitCollection: Looking for constituent records for record #{@record['001']}") marc_records_from_api = AlmaApi.new.fetch_marc_records(constituent_record_ids(@record)) marc_records_from_api.map do |record| recap_record = MarcRecord.new(record, @wanted852, @wanted876, @associated_holding_fields) diff --git a/app/models/alma_submit_collection/marc_s3_writer.rb b/app/models/alma_submit_collection/marc_s3_writer.rb index e34eb467..e670d2f5 100644 --- a/app/models/alma_submit_collection/marc_s3_writer.rb +++ b/app/models/alma_submit_collection/marc_s3_writer.rb @@ -40,6 +40,7 @@ def done compressor = Zlib::GzipWriter.new(compressed) compressor.write file_contents.read compressor.close + Rails.logger.debug('SubmitCollection: Writing file to SCSB S3') client.put_object(bucket:, body: compressed.string, key: "#{Rails.configuration.scsb_s3[:scsb_s3_updates]}/scsb_#{File.basename(file_path)}") end @current_file.unlink diff --git a/app/models/marc_collection.rb b/app/models/marc_collection.rb index 0f2616f9..8bf09ab7 100644 --- a/app/models/marc_collection.rb +++ b/app/models/marc_collection.rb @@ -11,6 +11,7 @@ def initialize(document) end def write(io) + Rails.logger.debug('Parsing an XML file and adding the namespace') parser = Nokogiri::XML::SAX::Parser.new(MarcCollectionDocumentCallbacks.new(io)) io.write "\n" parser.parse document