Class: ShopifyApp::Logger
- Inherits:
-
ShopifyAPI::Logger
- Object
- ShopifyAPI::Logger
- ShopifyApp::Logger
- Defined in:
- lib/shopify_app/logger.rb
Class Method Summary collapse
Class Method Details
.deprecated(message, version) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/shopify_app/logger.rb', line 6 def deprecated(, version) return unless enabled_for_log_level?(:warn) raise ShopifyAPI::Errors::FeatureDeprecatedError unless valid_version(version) ActiveSupport::Deprecation.warn("[#{version}] #{context(:warn)} #{}") end |