Log customer params
This commit is contained in:
@ -83,6 +83,7 @@ abstract class AbstractEndPoint extends LoggerEnabled implements EndPoint
|
|||||||
protected function sendAdd(string $request_uri, array $data, array $validStatus, array $invalidStatus): bool
|
protected function sendAdd(string $request_uri, array $data, array $validStatus, array $invalidStatus): bool
|
||||||
{
|
{
|
||||||
$params = $this->mapParams($data);
|
$params = $this->mapParams($data);
|
||||||
|
$this->logger->info('Send Add', ['uri' => $request_uri, 'data' => $data, 'params' => $params]);
|
||||||
try {
|
try {
|
||||||
$response = $this->client->post($request_uri, ['json' => $params]);
|
$response = $this->client->post($request_uri, ['json' => $params]);
|
||||||
} catch (ClientExceptionInterface $exception) {
|
} catch (ClientExceptionInterface $exception) {
|
||||||
|
Reference in New Issue
Block a user