lib/logstasher.rb in logstasher-2.1.2 vs lib/logstasher.rb in logstasher-2.1.3
- old
+ new
@@ -18,11 +18,11 @@
extend self
STORE_KEY = :logstasher_data
REQUEST_CONTEXT_KEY = :logstasher_request_context
attr_accessor :logger, :logger_path, :enabled, :log_controller_parameters, :source, :backtrace,
- :controller_monkey_patch, :field_renaming
+ :controller_monkey_patch, :field_renaming, :backtrace_filter
# Setting the default to 'unknown' to define the default behaviour
@source = 'unknown'
# By default log the backtrace of exceptions
@backtrace = true
@@ -111,9 +111,10 @@
self.logger = config.logger || new_logger(logger_path)
logger.level = config.log_level || Logger::WARN
self.source = config.source unless config.source.nil?
self.log_controller_parameters = !config.log_controller_parameters.nil?
self.backtrace = !config.backtrace.nil? unless config.backtrace.nil?
+ self.backtrace_filter = config.backtrace_filter
set_data_for_rake
set_data_for_console
self.field_renaming = Hash(config.field_renaming)
end