summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2021-11-26 12:15:36 +0100
committerSimon Rettberg2021-11-26 12:15:36 +0100
commit59b07a3eb0387c0206037fe638e6e5449e6700bd (patch)
tree4e154a489459056ffad09eef5cef5ef786a05a7e
parent[statistics] Add lookup table for GPT type UUIDs (diff)
downloadslx-admin-59b07a3eb0387c0206037fe638e6e5449e6700bd.tar.gz
slx-admin-59b07a3eb0387c0206037fe638e6e5449e6700bd.tar.xz
slx-admin-59b07a3eb0387c0206037fe638e6e5449e6700bd.zip
[statistics] Remove debug spam
-rw-r--r--modules-available/statistics/inc/hardwareparser.inc.php4
1 files 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()