lib/appsignal/auth_check.rb in appsignal-2.1.0.beta.1 vs lib/appsignal/auth_check.rb in appsignal-2.1.0

- old
+ new

@@ -2,12 +2,15 @@ class AuthCheck ACTION = "auth".freeze attr_reader :config, :logger - def initialize(config, logger = Appsignal.logger) + def initialize(config, logger = nil) @config = config - @logger = logger + if logger # rubocop:disable Style/GuardClause + warn "Deprecated: `logger` argument will be removed in the next " \ + "major version." + end end def perform Appsignal::Transmitter.new(ACTION, config).transmit({}) end