remove deprecated LOG_ constants

This commit is contained in:
Andrew Dolgov 2021-12-23 17:32:27 +03:00
parent 7aeaa1b039
commit 6971ca08b2
1 changed files with 6 additions and 6 deletions

View File

@ -718,7 +718,7 @@ class Feeds extends Handler_Protected {
<fieldset> <fieldset>
<label> <label>
<?= \Controls\select_hash("xdebug", $xdebug, <?= \Controls\select_hash("xdebug", $xdebug,
[Debug::$LOG_VERBOSE => "LOG_VERBOSE", Debug::$LOG_EXTENDED => "LOG_EXTENDED"]); [Debug::LOG_VERBOSE => "LOG_VERBOSE", Debug::LOG_EXTENDED => "LOG_EXTENDED"]);
?></label> ?></label>
</fieldset> </fieldset>
@ -2134,7 +2134,7 @@ class Feeds extends Handler_Protected {
$owner_uid = $row["owner_uid"]; $owner_uid = $row["owner_uid"];
if (Config::get(Config::FORCE_ARTICLE_PURGE) != 0) { if (Config::get(Config::FORCE_ARTICLE_PURGE) != 0) {
Debug::log("purge_feed: FORCE_ARTICLE_PURGE is set, overriding interval to " . Config::get(Config::FORCE_ARTICLE_PURGE), Debug::$LOG_VERBOSE); Debug::log("purge_feed: FORCE_ARTICLE_PURGE is set, overriding interval to " . Config::get(Config::FORCE_ARTICLE_PURGE), Debug::LOG_VERBOSE);
$purge_unread = true; $purge_unread = true;
$purge_interval = Config::get(Config::FORCE_ARTICLE_PURGE); $purge_interval = Config::get(Config::FORCE_ARTICLE_PURGE);
} else { } else {
@ -2143,10 +2143,10 @@ class Feeds extends Handler_Protected {
$purge_interval = (int) $purge_interval; $purge_interval = (int) $purge_interval;
Debug::log("purge_feed: interval $purge_interval days for feed $feed_id, owner: $owner_uid, purge unread: $purge_unread", Debug::$LOG_VERBOSE); Debug::log("purge_feed: interval $purge_interval days for feed $feed_id, owner: $owner_uid, purge unread: $purge_unread", Debug::LOG_VERBOSE);
if ($purge_interval <= 0) { if ($purge_interval <= 0) {
Debug::log("purge_feed: purging disabled for this feed, nothing to do.", Debug::$LOG_VERBOSE); Debug::log("purge_feed: purging disabled for this feed, nothing to do.", Debug::LOG_VERBOSE);
return null; return null;
} }
@ -2179,10 +2179,10 @@ class Feeds extends Handler_Protected {
$rows_deleted = $sth->rowCount(); $rows_deleted = $sth->rowCount();
Debug::log("purge_feed: deleted $rows_deleted articles.", Debug::$LOG_VERBOSE); Debug::log("purge_feed: deleted $rows_deleted articles.", Debug::LOG_VERBOSE);
} else { } else {
Debug::log("purge_feed: owner of $feed_id not found", Debug::$LOG_VERBOSE); Debug::log("purge_feed: owner of $feed_id not found", Debug::LOG_VERBOSE);
} }
return $rows_deleted; return $rows_deleted;