lib/fluent/plugin/out_solr.rb in fluent-plugin-output-solr-0.4.2 vs lib/fluent/plugin/out_solr.rb in fluent-plugin-output-solr-0.4.3
- old
+ new
@@ -135,14 +135,14 @@
end
def update(documents)
if @mode == MODE_STANDALONE then
@solr.add documents, :params => {:commit => true}
- log.info "Added %d document(s) to Solr" % documents.count
+ log.debug "Added %d document(s) to Solr" % documents.count
elsif @mode == MODE_SOLRCLOUD then
@solr.add documents, collection: @collection, :params => {:commit => true}
- log.info "Update: Added %d document(s) to Solr" % documents.count
+ log.debug "Update: Added %d document(s) to Solr" % documents.count
end
rescue Exception => e
log.warn "Update: An error occurred while indexing: #{e.message}"
end
@@ -154,11 +154,11 @@
elsif @mode == MODE_SOLRCLOUD then
response = @solr.get 'schema/uniquekey', collection: @collection
end
unique_key = response['uniqueKey']
- log.info "Unique key: #{unique_key}"
+ log.debug "Unique key: #{unique_key}"
return unique_key
rescue Exception => e
log.warn "Unique key: #{e.message}"
@@ -175,10 +175,10 @@
fields = []
response['fields'].each do |field|
fields.push(field['name'])
end
- log.info "Fields: #{fields}"
+ log.debug "Fields: #{fields}"
return fields
rescue Exception => e
log.warn "Fields: #{e.message}"