Skip to content

Commit

Permalink
Fix formatter regression from
Browse files Browse the repository at this point in the history
chef#74 fixed an issue
with Ruby 3.3's version of Logger. However, it dropped
`Mixlib::Log::Formatter` from the formatter, so all messages
now output as a Hash instead of a string.
  • Loading branch information
stanhu committed Jul 23, 2024
1 parent 0ebf4f1 commit 594dea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mixlib/log/logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def trace?; @level <= TRACE; end
# Create an instance.
#
def initialize(logdev)
super(nil)
super(nil, formatter: ::Mixlib::Log::Formatter.new)
if logdev
@logdev = LocklessLogDevice.new(logdev)
end
Expand Down

0 comments on commit 594dea0

Please sign in to comment.