use Monolog via composer instead of our own implementation, @TODO MySQL logging-handler

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2018-12-18 12:16:48 +01:00
parent fc0a495f2d
commit 9d314aaa3f
10 changed files with 354 additions and 763 deletions

View File

@@ -17,6 +17,9 @@
*
*/
use \Froxlor\Database;
use \Froxlor\Settings;
// Check Traffic-Lock
if (function_exists('pcntl_fork') && !defined('CRON_NOFORK_FLAG')) {
$TrafficLock = makeCorrectFile(dirname($lockfile)."/froxlor_cron_traffic.lock");
@@ -154,7 +157,7 @@ if (Settings::Get('system.diskquota_enabled')) {
* MAIL-Traffic
*/
if (Settings::Get("system.mailtraffic_enabled")) {
$mailTrafficCalc = new MailLogParser(Settings::Get("system.last_traffic_run"));
$mailTrafficCalc = new \Froxlor\MailLogParser(Settings::Get("system.last_traffic_run"));
}
$result_stmt = Database::query("SELECT * FROM `" . TABLE_PANEL_CUSTOMERS . "` ORDER BY `customerid` ASC");