Skip to content

Commit

Permalink
log/console_adapter: Simplify initialization parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Takuro Ashie <[email protected]>
  • Loading branch information
ashie committed Jan 5, 2023
1 parent 7b52a7e commit 3bf86c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/fluent/log/console_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ module Fluent
class Log
class ConsoleAdapter < Console::Terminal::Logger
def self.wrap(logger)
Console::Logger.new(ConsoleAdapter.new(StringIO.new, logger))
Console::Logger.new(ConsoleAdapter.new(logger))
end

def initialize(io, logger)
def initialize(logger)
@logger = logger
super(io, verbose: false)
super(StringIO.new, verbose: false)
end

def call(subject = nil, *arguments, name: nil, severity: 'info', **options, &block)
Expand Down

0 comments on commit 3bf86c3

Please sign in to comment.