bin/marc2solr in marc2solr-0.2.3 vs bin/marc2solr in marc2solr-0.2.4

- old
+ new

@@ -274,12 +274,14 @@ suss << doc end end # Print out the record and/or the document - opts[:debugfile].puts r if opts[:printmarc] - opts[:debugfile].puts doc if opts[:printdoc] - opts[:debugfile].puts "\n\n" if opts[:printdoc] or opts[:printmarc] + if doc['id'] + opts[:debugfile].puts r if opts[:printmarc] + opts[:debugfile].puts doc if opts[:printdoc] + opts[:debugfile].puts "\n\n" if opts[:printdoc] or opts[:printmarc] + end if Thread.current[:index] % opts[:logbatchsize] == 0 pace = Thread.current[:index] / (Time.new.to_f - start) LOG.info "%d indexed (overall pace: %.0f rec/sec)" % [Thread.current[:index], pace] end