-
Notifications
You must be signed in to change notification settings - Fork 145
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
Option to hide initialization message in the log #296
Comments
@pomartel have you considered changing the |
I've put the following in my
When I boot my rails server (puma), it still shows up:
Is the config file read after that line is outputted in the log? Or am I doing something wrong? |
The config file should be read before any log output is created. @minhajuddin can you take a look at this when you have the time? The issue might be that we log to the rails logger by default. I thought we still respected our internal log level, but maybe we don't in that case? |
I confirmed what you all are seeing -- when using the Rails logger (which is the default), our internal log level is ignored in favor of Rails' log level. I forgot that we also mention this in our docs (see the "logging" heading here). I'll think about a possible fix for this. In the meantime, an option that would work would be to use a custom honeybadger.log file (or stdout) by setting |
@joshuap Thank you for pointing out the docs section. That works well enough for my needs! |
Every time I run a rake command, make a new deployment or open a console in Heroku, this log line appears:
I find it a bit annoying, no other gems or plugins does that by default. Would it be possible to add an option to remove it from the log?
https://github.com/honeybadger-io/honeybadger-ruby/blob/master/lib/honeybadger/config.rb#L58
The text was updated successfully, but these errors were encountered: