-
Notifications
You must be signed in to change notification settings - Fork 283
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: disable logging in development if Rollbar is disabled #66
Comments
Makes sense. Probably the way to do this is to implement a dummy object that can stand in as |
It doesn't look like the code is even using https://github.com/rollbar/rollbar-gem/blob/master/lib/rollbar/exception_reporter.rb#L23-L29 I think the ideal solution would be requiring Rollbar to be included as Rack/Rails middleware in config/environments/*.rb or config/application.rb, so it just doesn't even get run in environments where it is disabled (Oink is an example of a gem that does this). However, if there's a way to disable the logging in the configuration, that would be an acceptable compromise :) |
Oh, good find; that should be using https://github.com/rollbar/rollbar-gem/blob/master/lib/rollbar.rb#L236-L242 (which also shouldn't be |
👍 |
+1 waiting for this feature. And I would also like to disable posting dev data even if Rollbar is enabled |
Any news on this one? I actually would like to disable (or redirect) Rollbar logging in production as well (even if Rollbar reporting is enabled). We are logging JSON-lines to be processed with Logstash. Rollbar's logging is quite annoying and messes up the logs. |
@tisba we didn't work on this yet, but you could always set So depending on the environment you are, you can set that logger or not. We'll try to find a configuration solution for this or perhaps adding or not the middleware to the stack. |
Any progress for this issue? It's still open for long time |
Bump! any hope for this? |
I have rollbar disabled in development, but any time there's an exception I get log messages like this:
It would be nice if there was a way to disable these as they clutter up my log file and are unnecessary if Rollbar is disabled.
The text was updated successfully, but these errors were encountered: