diff --git a/lib/muffin_man.rb b/lib/muffin_man.rb index 72bfdce..f8a01ee 100644 --- a/lib/muffin_man.rb +++ b/lib/muffin_man.rb @@ -35,7 +35,7 @@ def initialize(auth_response) end class << self - attr_accessor :configuration, :logger + attr_accessor :configuration end def self.configure diff --git a/lib/muffin_man/muffin_logger.rb b/lib/muffin_man/muffin_logger.rb index e236871..fc90188 100644 --- a/lib/muffin_man/muffin_logger.rb +++ b/lib/muffin_man/muffin_logger.rb @@ -5,7 +5,7 @@ module MuffinMan class MuffinLogger def self.logger - MuffinMan.configuration.log_with || Logger.new($stdout) + MuffinMan.configuration&.log_with || Logger.new($stdout) end %i[debug info warn error fatal].each do |level|