Skip to content

Commit

Permalink
Merge pull request #42 from rage-rb/nil-logger
Browse files Browse the repository at this point in the history
Always create a logger
  • Loading branch information
rsamoilov authored Dec 1, 2023
2 parents d8df034 + a229bc0 commit dd29523
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 dd29523

Please sign in to comment.