From bb01a4e92d3df8e0546afbd76bc922126da4d576 Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Thu, 13 Feb 2025 15:05:30 +0100 Subject: [PATCH] onlineshops moved from logfile to logger --- www/pages/onlineshops.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/www/pages/onlineshops.php b/www/pages/onlineshops.php index 9ea25bf6..877379f5 100644 --- a/www/pages/onlineshops.php +++ b/www/pages/onlineshops.php @@ -13,6 +13,7 @@ */ ?> app=$app; + $this->logger = $app->Container->get('Logger'); if($intern) { return; } @@ -2860,7 +2864,8 @@ INNER JOIN shopexport s ON LEFT JOIN (SELECT artikel FROM artikel_onlineshops WHERE shop = '$id' AND aktiv = 1 GROUP BY artikel) oa ON a.id = oa.artikel SET a.cache_lagerplatzinhaltmenge = -999 WHERE (a.shop = '$id' OR a.shop2 = '$id' OR a.shop3 = '$id' OR NOT ISNULL(oa.artikel)) AND a.geloescht = 0 AND ($where)"); $anz = $this->app->DB->affected_rows(); - $this->app->erp->LogFile("Lagerzahlencache zurückgesetzt für $anz Artikel, shopid: $id"); +// $this->app->erp->LogFile("Lagerzahlencache zurückgesetzt für $anz Artikel, shopid: $id"); + $this->Log(Logger::INFO, "Lagerzahlencache zurückgesetzt für $anz Artikel, shopid: $id"); $this->app->Tpl->Add('MESSAGE','