Skip to content

Commit

Permalink
removed all loggers
Browse files Browse the repository at this point in the history
  • Loading branch information
Joris Wagter committed Oct 31, 2024
1 parent a8e6d16 commit 6f6210d
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 14 deletions.
2 changes: 0 additions & 2 deletions Controller/AbstractDataLayerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ public function __construct(
public function execute(): ResultInterface
{
$resultJson = $this->resultFactory->create();
// $dataLayer = $this->getDataLayer();

$resultJson->setData($this->getDataLayer());
// ObjectManager::getInstance()->get(LoggerInterface::class)->critical(print_r($dataLayer, true));

return $resultJson;
}
Expand Down
1 change: 0 additions & 1 deletion Controller/GetQuoteData/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ public function __construct(QuoteDataHelper $quoteDataHelper, JsonFactory $jsonF
public function execute()
{
$quoteData = $this->quoteDataHelper->getQuoteData();
ObjectManager::getInstance()->get(LoggerInterface::class)->critical(print_r($quoteData, true));
$result = $this->jsonFactory->create();
$result->setData($quoteData);
return $result;
Expand Down
1 change: 0 additions & 1 deletion Controller/RemoveFromCart/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public function getEvent(): string
public function getEcommerce(): array
{
$quoteItemId = $this->context->getRequest()->getParam('id');
ObjectManager::getInstance()->get(LoggerInterface::class)->critical('quote item id remove: ' . $quoteItemId);
$quote = $this->checkoutSession->getQuote();

$ecommerce = [
Expand Down
8 changes: 0 additions & 8 deletions Observer/PurchaseEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ public function execute(Observer $observer)

$eventEnabled = $this->config->getValue('taggrs_datalayer/events/purchase_via_measurement_api');

// $logger->critical("Purchase event enabled: " . $eventEnabled);

if (!$eventEnabled) {
return;
}
Expand Down Expand Up @@ -100,19 +98,13 @@ public function execute(Observer $observer)
$jsonBody = json_encode($body);
$jsonBody = strtr($jsonBody, [':[]' => ':{}']);

// $logger->critical($jsonBody);

$res = $this->client->request('POST', $url, [
'headers' => [
'content-type' => 'application/json;charset=utf-8'
],
'body' => $jsonBody,
]);

// $logger->critical($res->getStatusCode());


// TODO: Implement execute() method.
}

private function getUserData(): array
Expand Down
2 changes: 0 additions & 2 deletions Plugin/RemoveFromCart.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ public function __construct(
public function beforeExecute(Delete $subject)
{
$request = $subject->getRequest();
ObjectManager::getInstance()->get(LoggerInterface::class)->critical(print_r($request->getParams(), true));

$quoteItemId = $request->getParam('id');

if ($quoteItemId !== null) {
Expand Down

0 comments on commit 6f6210d

Please sign in to comment.