Skip to content

Commit

Permalink
Fix Logger compatibility with Ruby 3.3
Browse files Browse the repository at this point in the history
Initialize the Ruby logger when initializing our logger as well so its
internals can handle the `@level_override` instance variable and don't
break users applications.
  • Loading branch information
cmer authored and luismiramirez committed Dec 27, 2023
1 parent 2e93182 commit ae0b779
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changesets/fix-compatibility-for-ruby-3-3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
bump: "patch"
type: "fix"
---

Fix logger compatibility with Ruby 3.3
2 changes: 2 additions & 0 deletions lib/appsignal/logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class Logger < ::Logger
def initialize(group, level: INFO, format: PLAINTEXT)
raise TypeError, "group must be a string" unless group.is_a? String

super(group, :level => level)

@group = group
@level = level
@format = format
Expand Down

0 comments on commit ae0b779

Please sign in to comment.