lib/fluent/plugin/out_solr.rb in fluent-plugin-output-solr-0.4.7 vs lib/fluent/plugin/out_solr.rb in fluent-plugin-output-solr-0.4.8

- old
+ new

@@ -170,11 +170,11 @@ elsif @mode == MODE_SOLRCLOUD then @solr.add documents, collection: @collection, :params => {:commit => @commit_with_flush} log.debug "Added #{documents.count} document(s) to Solr" end rescue Exception => e - log.warn "An error occurred while indexing: #{e.message}".slice(0, 1024) + log.warn "An error occurred while indexing: #{e.message}" end def get_unique_key response = nil @@ -188,11 +188,11 @@ log.debug "Unique key: #{unique_key}" return unique_key rescue Exception => e - log.warn "An error occurred while getting unique key: #{e.message}".slice(0, 1024) + log.warn "An error occurred while getting unique key: #{e.message}" end def get_fields response = nil @@ -209,9 +209,9 @@ log.debug "Fields: #{fields}" return fields rescue Exception => e - log.warn "An error occurred while getting fields: #{e.message}".slice(0, 1024) + log.warn "An error occurred while getting fields: #{e.message}" end end end