Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Ability to ignore certain paths / routes #100

Open
ajsharp opened this issue Mar 3, 2016 · 2 comments
Open

Feature Request: Ability to ignore certain paths / routes #100

ajsharp opened this issue Mar 3, 2016 · 2 comments

Comments

@ajsharp
Copy link

ajsharp commented Mar 3, 2016

No description provided.

@garmoshka-mo
Copy link

garmoshka-mo commented Feb 22, 2017

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

@bhushangahire
Copy link

BUMP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants