Skip to content

Commit f0ec6fa

Browse files
committed
Update logs & readme
1 parent 93d32e6 commit f0ec6fa

6 files changed

Lines changed: 7 additions & 10 deletions

File tree

doc/installation.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,12 @@
5959
id: "%env(GOOGLE_ANALYTICS_TAG)%"
6060
enabled: true
6161
```
62-
7. Add api credentials and GTM to your channel configuration in admin panel. If you decided to extend different object, please make sure that api credentials are set
6362
8. Run yarn install and yarn build to compile assets, or the alternative solution you use for your project
6463
```bash
6564
yarn install && yarn build
6665
```
66+
7. Add api credentials and GTM to your channel configuration in admin panel. If you decided to extend different object, please make sure that api credentials are set
67+
![Channel configuration](../doc/user_com_configuration.png)
6768
9. Configure consumer to run in supervisor:
6869
```bash
6970
bin/console messenger:consume user_com_asynchronous

doc/user_com_configuration.png

481 KB
Loading

src/Api/AbstractClient.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,9 @@ protected function request(
5555
}
5656

5757
if ($status >= Response::HTTP_OK && $status < Response::HTTP_MULTIPLE_CHOICES) {
58-
$this->logger->debug(sprintf(
59-
sprintf('%s User.com API request', $status),
60-
), [
58+
$this->logger->debug('User.com - Successful API request', [
6159
'path' => $path,
6260
'method' => $method,
63-
'options' => $options,
64-
'response' => $response->getContent(false),
6561
]);
6662

6763
return $response->toArray();

src/Assigner/AgreementsAssigner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function assign(CustomerInterface $customer, array $agreements): void
2828
'email_agreement' => $customer->setSubscribedToNewsletter($value),
2929
default => $this->logger->error(
3030
sprintf(
31-
'Agreement not found. Key = %s, Value = %s, CustomerId = %s',
31+
'User.com - Agreement not found. Key = %s, Value = %s, CustomerId = %s',
3232
$key,
3333
$value,
3434
$customer->getId(),

src/Dispatcher/OrderMessageDispatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct(
2727
public function dispatch(OrderInterface $order): void
2828
{
2929
if (null === $order->getId()) {
30-
$this->logger->error('Order ID cannot be null');
30+
$this->logger->error('User.com - Order ID cannot be null');
3131

3232
return;
3333
}

src/Manager/OrderUpdateManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,15 @@ private function createProductEvents(
9191
try {
9292
$eventType = self::PRODUCT_EVENT_MAP[$order->getState()] ?? null;
9393
if (null === $eventType) {
94-
$this->logger->warning(sprintf('Order #%s state "%s" is not supported.', $order->getNumber(), $order->getState()));
94+
$this->logger->warning(sprintf('User.com - Order #%s state "%s" is not supported.', $order->getNumber(), $order->getState()));
9595

9696
return;
9797
}
9898

9999
foreach ($order->getItems() as $orderItem) {
100100
$variant = $orderItem->getVariant();
101101
if (null === $variant) {
102-
$this->logger->warning(sprintf('Order item #%s does not have a variant.', $orderItem->getId()));
102+
$this->logger->warning(sprintf('User.com - Order item #%s does not have a variant.', $orderItem->getId()));
103103

104104
continue;
105105
}

0 commit comments

Comments
 (0)