lib/semantic_logger/appender/splunk.rb in semantic_logger-4.1.1 vs lib/semantic_logger/appender/splunk.rb in semantic_logger-4.2.0

- old
+ new

@@ -96,18 +96,17 @@ # After forking an active process call #reopen to re-open # open the handles to resources def reopen # Connect to splunk. Connect is a synonym for creating a Service by hand and calling login. - self.service = Splunk::connect(config) + self.service = Splunk::connect(config) # The index we are logging to self.service_index = service.indexes[index] end # Log the message to Splunk def log(log) - return false unless should_log?(log) event = formatter.call(log, self) service_index.submit(event.delete(:message), event) true end