Enable Discovery debug logging for production troubleshooting
- Add DISCOVERY_LOG_LEVEL=debug - Add DISCOVERY_SHOW_PROGRESS=true - Temporary changes for debugging InitializerProcessor fixes on production
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Infrastructure\Api;
|
||||
|
||||
use App\Framework\Api\ApiException;
|
||||
use App\Framework\Api\ApiRequestTrait;
|
||||
use App\Framework\Http\Method;
|
||||
use App\Framework\HttpClient\AuthConfig;
|
||||
@@ -37,7 +37,7 @@ final class ShopifyClient
|
||||
|
||||
$this->defaultOptions = new ClientOptions(
|
||||
auth: AuthConfig::custom([
|
||||
'headers' => ['X-Shopify-Access-Token' => $accessToken]
|
||||
'headers' => ['X-Shopify-Access-Token' => $accessToken],
|
||||
])
|
||||
);
|
||||
|
||||
@@ -266,8 +266,8 @@ final class ShopifyClient
|
||||
'webhook' => [
|
||||
'topic' => $topic,
|
||||
'address' => $address,
|
||||
'format' => $format
|
||||
]
|
||||
'format' => $format,
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
@@ -370,6 +370,7 @@ final class ShopifyClient
|
||||
if (preg_match('/^(\d+)\/(\d+)$/', $limitHeader, $matches)) {
|
||||
$current = (int)$matches[1];
|
||||
$limit = (int)$matches[2];
|
||||
|
||||
return $limit - $current;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user