lib/sidekiq/logstash.rb in sidekiq-logstash-1.1.0 vs lib/sidekiq/logstash.rb in sidekiq-logstash-1.2.0
- old
+ new
@@ -1,22 +1,27 @@
+# frozen_string_literal: true
+
require 'sidekiq/logstash/configuration'
require 'sidekiq/logstash/version'
require 'sidekiq/middleware/server/logstash_logging'
require 'sidekiq/logging/logstash_formatter'
require 'sidekiq/logging/argument_filter'
require 'sidekiq/logstash_job_logger'
module Sidekiq
+ # Main level module for Sidekiq::Logstash.
+ # Provides integration between Sidekiq and Logstash by changing the way
+ # Sidekiq jobs are logged.
module Logstash
def self.configuration
@configuration ||= Configuration.new
end
def self.configure
yield(configuration)
end
- def self.setup(opts = {})
+ def self.setup(_opts = {})
# Calls Sidekiq.configure_server to inject logics
Sidekiq.configure_server do |config|
# Remove default Sidekiq error_handler that logs errors
config.error_handlers.delete_if { |h| h.is_a?(Sidekiq::ExceptionHandler::Logger) }