lib/sidekiq/logstash/configuration.rb in sidekiq-logstash-1.1.0 vs lib/sidekiq/logstash/configuration.rb in sidekiq-logstash-1.2.0

- old
+ new

@@ -1,17 +1,22 @@ +# frozen_string_literal: true + module Sidekiq module Logstash + # Class that allows to configure the gem behaviour. class Configuration - attr_accessor :custom_options, :filter_args + attr_accessor :custom_options, :filter_args, :job_start_log def initialize @filter_args = [] + @job_start_log = false end # Added to ensure custom_options is a Proc def custom_options=(proc) raise ArgumentError, 'Argument must be a Proc.' unless proc.is_a?(Proc) + @custom_options = proc end end end -end \ No newline at end of file +end