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 25, 2024
1 parent 99d3ceb commit aaa46e1
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 aaa46e1

Please sign in to comment.