Skip to content

Commit

Permalink
Add logger deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
lizkenyon committed Jan 24, 2024
1 parent 99d3ceb commit 2e41e3a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/shopify_api/webhooks/registry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,12 @@ def process(request)
body: request.parsed_body, api_version: request.api_version, webhook_id: request.webhook_id))
else
handler.handle(topic: request.topic, shop: request.shop, body: request.parsed_body)
ShopifyAPI::Logger.warn(<<~WARNING)
DEPRECATED: Use ShopifyAPI::Webhooks::WebhookHandler#handle
ShopifyAPI::Logger.deprecated(
"DEPRECATED: Use ShopifyAPI::Webhooks::WebhookHandler#handle
instead of ShopifyAPI::Webhooks::Handler#handle.
https://github.com/Shopify/shopify-api-ruby/blob/main/docs/usage/webhooks.md#create-a-webhook-handler
WARNING
https://github.com/Shopify/shopify-api-ruby/blob/main/docs/usage/webhooks.md#create-a-webhook-handler",
"14.0.0",
)
end
end

Expand Down

0 comments on commit 2e41e3a

Please sign in to comment.