Skip to content

Commit

Permalink
fix: 404 error for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
vermorag committed Nov 29, 2024
1 parent 17d4064 commit a74c262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Transport/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static function sendJsonRequest(

$result = self::processRequest($url, $method, $config);

if (($log = wc_get_logger()) && !$result->isSuccess()) {
if (($log = wc_get_logger()) && !$result->isSuccess() && $result->getStatusCode() !== 404) {
$log->debug('API returned error', [
'code' => $result->getStatusCode(),
'resp' => $result->body(),
Expand Down

0 comments on commit a74c262

Please sign in to comment.