From 1ae06bf0f4a065954bf39739b05f163ff51369b6 Mon Sep 17 00:00:00 2001 From: Gytautas Date: Tue, 23 Jul 2024 10:06:34 +0300 Subject: [PATCH] not needed logs deleted --- controllers/front/notify.php | 41 ------------------------------------ 1 file changed, 41 deletions(-) diff --git a/controllers/front/notify.php b/controllers/front/notify.php index 2b607f743..2e6b2d43b 100755 --- a/controllers/front/notify.php +++ b/controllers/front/notify.php @@ -102,34 +102,6 @@ public function postProcess() $checkoutData->setOrderStatus($transactionStatus); - PrestaShopLogger::addLog( - sprintf( - 'Order %s has been updated to status %s', - $cart->id, - $transactionStatus - ), - 1, - null, - null, - null, - true - ); - - $checkoutProcessor->run($checkoutData); - - - PrestaShopLogger::addLog( - sprintf( - 'Order %s has been updated to status %s', - $cart->id, - $transactionStatus - ), - 1, - null, - null, - null, - true - ); $orderId = $this->getOrderId($cartId); //TODO look into pipeline design pattern to use when object is modified in multiple places to avoid this issue. @@ -219,19 +191,6 @@ public function postProcess() die($this->module->l($e->getMessage(), self::FILENAME)); } - PrestaShopLogger::addLog( - sprintf( - 'Order %s has been updated to status %s', - $order->reference, - $transactionStatus - ), - 1, - null, - null, - null, - true - ); - die($this->module->l('Success', self::FILENAME)); }