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','
Lagerzahlencache zurückgesetzt für '.$anz.' Artikel, shopid: '.$id.'
');
}
}
@@ -3156,7 +3161,8 @@ INNER JOIN shopexport s ON
}
}
}catch(Exception $ex){
- $this->app->erp->LogFile('Fehlerhafter Aufruf in Modul: '.$moduleName);
+// $this->app->erp->LogFile('Fehlerhafter Aufruf in Modul: '.$moduleName);
+ $this->Log(Logger::INFO, 'Fehlerhafter Aufruf in Modul: '.$moduleName, $ex);
}
$username = $this->app->DB->real_escape_string($this->app->User->GetUsername());
@@ -3337,6 +3343,8 @@ INNER JOIN shopexport s ON
if($this->app->Secure->GetPOST('pruefen')) {
+ $this->Log(Logger::DEBUG, "Verbindung prüfen");
+
$className = 'Remote';
$methodName = 'RemoteConnection';
$r = new ReflectionMethod($className, $methodName);
@@ -4980,4 +4988,10 @@ INNER JOIN shopexport s ON
return $ret;
}
+
+ private function Log($level, $message, $dump = array()) {
+ $shopid = (int)$this->app->Secure->GetGET('id');
+ $this->logger->Log($level, 'Onlineshops (Shop '.$shopid.') '.$message, (array) $dump);
+ }
+
}