Skip to content

Commit ffd914b

Browse files
authored
fix(ruby): Fix logger patches append (#15864)
<!-- Use this checklist to make sure your PR is ready for merge. You may delete any sections you don't need. --> ## DESCRIBE YOUR PR * resolves: #15858 * resolves: DOCS-2379 ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. - [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE --> - [ ] Other deadline: <!-- ENTER DATE HERE --> - [ ] None: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it. Thanks in advance for your help! ## PRE-MERGE CHECKLIST *Make sure you've checked the following before merging your changes:* - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs)
1 parent 74057ab commit ffd914b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

platform-includes/logs/integrations/ruby.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ To enable logging for all loggers that use Ruby [Logger](https://ruby-doc.org/3.
44
Sentry.init do |config|
55
config.dsn = "___PUBLIC_DSN___"
66
config.enable_logs = true
7-
config.enabled_patches = [:logger]
7+
config.enabled_patches << :logger
88
end
99
```
1010

platform-includes/logs/options/ruby.rails.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ If you want all Rails logs to go to Sentry, you can enable the `:logger` patch:
9595
Sentry.init do |config|
9696
config.dsn = "___PUBLIC_DSN___"
9797
config.enable_logs = true
98-
config.enabled_patches = [:logger]
98+
config.enabled_patches << :logger
9999
end
100100
```
101101

0 commit comments

Comments
 (0)