From 59b07a3eb0387c0206037fe638e6e5449e6700bd Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 26 Nov 2021 12:15:36 +0100 Subject: [statistics] Remove debug spam --- modules-available/statistics/inc/hardwareparser.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules-available/statistics/inc/hardwareparser.inc.php b/modules-available/statistics/inc/hardwareparser.inc.php index 0217835e..8f55493d 100644 --- a/modules-available/statistics/inc/hardwareparser.inc.php +++ b/modules-available/statistics/inc/hardwareparser.inc.php @@ -19,7 +19,7 @@ class HardwareParser public static function convertSize(string $string, string $scale = 'a', bool $appendUnit = true) { if (!preg_match('/(\d+)\s*([TGMK]?)/i', $string, $out)) { - error_log("Not size: $string"); + //error_log("Not size: $string"); return false; } $val = (int)$out[1] * self::LOOKUP[strtoupper($out[2])]; @@ -217,7 +217,7 @@ class HardwareParser */ private static function markDisconnected(string $uuid, string $dbType, array $excludedHwIds) { - error_log("Marking disconnected for $dbType except " . implode(', ', $excludedHwIds)); + //error_log("Marking disconnected for $dbType except " . implode(', ', $excludedHwIds)); if (empty($excludedHwIds)) { Database::exec("UPDATE machine_x_hw mxh, statistic_hw h SET mxh.disconnecttime = UNIX_TIMESTAMP() -- cgit v1.2.3-55-g7522