Skip to content

Commit

Permalink
Always create a logger
Browse files Browse the repository at this point in the history
this allows to configure logger as `nil`
  • Loading branch information
rsamoilov committed Nov 29, 2023
1 parent d67b196 commit a229bc0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rage/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def initialize
end

def __finalize
@logger ||= Rage::Logger.new(nil)
@logger.formatter = @log_formatter if @logger && @log_formatter
@logger.level = @log_level if @logger && @log_level
end
Expand Down

0 comments on commit a229bc0

Please sign in to comment.