lib/logstasher/custom_fields.rb in logstasher-1.4.0 vs lib/logstasher/custom_fields.rb in logstasher-2.0.0
- old
+ new
@@ -3,10 +3,10 @@
module LogSubscriber
def extract_custom_fields(data)
(!CustomFields.custom_fields.empty? && data.extract!(*CustomFields.custom_fields)) || {}
end
end
-
+
def self.clear
Thread.current[:logstasher_custom_fields] = []
end
def self.add(*fields)