Class: ShopifyApp::Logger

Inherits:
ShopifyAPI::Logger
  • Object
show all
Defined in:
lib/shopify_app/logger.rb

Class Method Summary collapse

Class Method Details

.deprecated(message, version) ⇒ Object

Raises:

  • (ShopifyAPI::Errors::FeatureDeprecatedError)


6
7
8
9
10
11
12
# File 'lib/shopify_app/logger.rb', line 6

def deprecated(message, version)
  return unless enabled_for_log_level?(:warn)

  raise ShopifyAPI::Errors::FeatureDeprecatedError unless valid_version(version)

  ActiveSupport::Deprecation.warn("[#{version}] #{context(:warn)} #{message}")
end