X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWorker%2FCronJobs.php;h=0c565daa73ec5ceb9e54611686d50b90b714a866;hb=7458d793ed6c5eaa9220bf14e05fa8cb76c122f1;hp=ae3f48617d6d7bebfc40c23260b955d53aae919f;hpb=14fde5dc9b1915392601fb94efc6224c01f2b216;p=friendica.git diff --git a/src/Worker/CronJobs.php b/src/Worker/CronJobs.php index ae3f48617d..0c565daa73 100644 --- a/src/Worker/CronJobs.php +++ b/src/Worker/CronJobs.php @@ -34,7 +34,7 @@ class CronJobs return; } - Logger::log("Starting cronjob " . $command, LOGGER_DEBUG); + Logger::log("Starting cronjob " . $command, Logger::DEBUG); // Call possible post update functions // see src/Database/PostUpdate.php for more details @@ -83,7 +83,7 @@ class CronJobs return; } - Logger::log("Xronjob " . $command . " is unknown.", LOGGER_DEBUG); + Logger::log("Xronjob " . $command . " is unknown.", Logger::DEBUG); return; } @@ -212,7 +212,7 @@ class CronJobs // Calculate fragmentation $fragmentation = $table["Data_free"] / ($table["Data_length"] + $table["Index_length"]); - Logger::log("Table " . $table["Name"] . " - Fragmentation level: " . round($fragmentation * 100, 2), LOGGER_DEBUG); + Logger::log("Table " . $table["Name"] . " - Fragmentation level: " . round($fragmentation * 100, 2), Logger::DEBUG); // Don't optimize tables that needn't to be optimized if ($fragmentation < $fragmentation_level) { @@ -220,7 +220,7 @@ class CronJobs } // So optimize it - Logger::log("Optimize Table " . $table["Name"], LOGGER_DEBUG); + Logger::log("Optimize Table " . $table["Name"], Logger::DEBUG); q("OPTIMIZE TABLE `%s`", DBA::escape($table["Name"])); } } @@ -259,7 +259,7 @@ class CronJobs continue; } - Logger::log("Repair contact " . $contact["id"] . " " . $contact["url"], LOGGER_DEBUG); + Logger::log("Repair contact " . $contact["id"] . " " . $contact["url"], Logger::DEBUG); q("UPDATE `contact` SET `batch` = '%s', `notify` = '%s', `poll` = '%s', pubkey = '%s' WHERE `id` = %d", DBA::escape($data["batch"]), DBA::escape($data["notify"]), DBA::escape($data["poll"]), DBA::escape($data["pubkey"]), intval($contact["id"]));