You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default example for setting log level is config.log_level = :info... not config.logger.level = Logger::INFO. This lead to some confusion during setup when my production environment switched from INFO (which it was set to with config.log_level) to debug whenever I used this papertrail gem.
This may be responsible for the surprisingly large number of production environments in debug you guys have encountered...
Confirm existing verbosity: make sure your app is not unintentionally logging at DEBUG level. This is much more common than it sounds.
Thanks for thinking about this this, Dan! Could you point me to where you saw logger.level referenced as the canonical example of how to set the logger (and at the exclusion of log_level), or how you concluded that the current README doesn't change the log level? I know for a fact that log_level has worked in the past and did until very recently, which makes me question the conclusion that this change is built on. The Rails config guide reads:
config.log_level defines the verbosity of the Rails logger. This option defaults to :debug for all modes except production, where it defaults to :info.
Regarding frequency, very few people use this gem (rather than remote_syslog2 or an automatic log aggregation (like Heroku), so the verbosity problem is unrelated to remote_syslog_logger.
config.log_level is what you'll find as the default (or was in mine anyway) in the rails environment configuration files. I had to switch to using config.logger.level, but only if using this gem. Maybe it's something unique to my setup or rails version? Not sure...
Okay. Leaving this open until we collectively learn more (and if anyone sees this and wants to comment, feel free).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The default example for setting log level is
config.log_level = :info... notconfig.logger.level = Logger::INFO. This lead to some confusion during setup when my production environment switched from INFO (which it was set to with config.log_level) to debug whenever I used this papertrail gem.This may be responsible for the surprisingly large number of production environments in debug you guys have encountered...
(Quote from papertrail's support page)