Skip to content

Remove double opt-in for Logs in Rails #2715

@dingsdax

Description

@dingsdax

if enable_logs = true  in Ruby, we need to enable Rails logging automatically

Sentry.init do |config|
  # ... your setup ...

  # Make sure structured logging is enabled
  config.enable_logs = true

  # Enable default Rails log subscribers (ActionController and ActiveRecord)
  config.rails.structured_logging.enabled = true
end

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions