Skip to content

Commit

Permalink
Merge pull request #246 from ag4ta/fix-undefined-method
Browse files Browse the repository at this point in the history
Add formatter= method to make the logging gem compatible with rails 7.1
  • Loading branch information
TwP authored Jun 8, 2024
2 parents df41715 + 1316c31 commit 55f7966
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/logging/rails_compat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ module RailsCompat
# A no-op implementation of the `formatter` method.
def formatter; end

# A no-op implementation of the `formatter=` method.
def formatter=(_formatter); end

# A no-op implementation of the +silence+ method. Setting of log levels
# should be done during the Logging configuration. It is the author's
# opinion that overriding the log level programmatically is a logical
Expand Down

0 comments on commit 55f7966

Please sign in to comment.