logstasher
logstasher copied to clipboard
Feature Request: Ability to ignore certain paths / routes
Feature with high demand, especially for high-loaded apps
For now it can be done with monkey-patching.
Put this to config/initializers/logstasher.rb
:
if LogStasher.enabled?
LogStasher::ActiveSupport::LogSubscriber.class_eval do
alias :original_process_action :process_action
def process_action(event)
if event.payload[:exception] # some your condition
original_process_action(event)
end
end
end
end
BUMP