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
{{ message }}
Repository navigation
Sentry logging doesn't respect log_level severity set in Rails #2696
We recently enabled the new Sentry logger (using config.enable_logs = true and the :logger patch) for our Rails application. We noticed that all logs are being forwarded to Sentry, regardless of the severity. We'd love to use this feature but are not interested in forwarding the massive amount of debug and info logs.
With some digging, I noticed that the patch introduced by the Sentry gem intercepts the calls to the logger and simply forwards all logs without respect for the log level. Is there any interest in adding logic to respect the log_level configured? I would be happy dive into the code.
Activity
linear commentedon Sep 8, 2025
RUBY-91 Sentry logging doesn't respect log_level severity set in Rails