lib/ldclient-rb/config.rb in launchdarkly-server-sdk-8.3.0 vs lib/ldclient-rb/config.rb in launchdarkly-server-sdk-8.3.1

- old
+ new

@@ -456,10 +456,10 @@ # # The default value for {#logger}. # @return [Logger] the Rails logger if in Rails, or a default Logger at WARN level otherwise # def self.default_logger - if defined?(Rails) && Rails.respond_to?(:logger) + if defined?(Rails) && Rails.respond_to?(:logger) && Rails.logger Rails.logger else log = ::Logger.new($stdout) log.level = ::Logger::WARN log