Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 7bcc33f

Browse files
committed
small logging changes
1 parent 2a170c8 commit 7bcc33f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/magento.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
/*
6666
|--------------------------------------------------------------------------
67-
| Magento API Log Failed Request
67+
| Magento API Log Failed Requests
6868
|--------------------------------------------------------------------------
6969
|
7070
| Logs all non-successful Useful for debugging request parameters,

src/Api/AbstractApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ protected function checkExceptions($response, $endpoint, $parameters)
118118

119119
if (! $response->successful()) {
120120
if (config('magento.log_failed_requests')) {
121-
Log::info('[MAGENTO API][STATUS] '.$response->status() .' [ENDPOINT] ' . $endpoint .' [PARAMETERS] '. json_encode($parameters).' [RESPONSE] ' . json_encode($response->json()));
121+
Log::info('[MAGENTO API][STATUS] '.$response->status().' [ENDPOINT] '.$endpoint.' [RESPONSE] '.json_encode($response->json()));
122122
}
123123
}
124124

0 commit comments

Comments
 (0)