summaryrefslogtreecommitdiff
path: root/classes/rssutils.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-25 15:49:30 +0300
committerAndrew Dolgov <[email protected]>2021-02-25 15:49:30 +0300
commitdcf0135285f1a515454807cdfe1e819f37a23a86 (patch)
tree923ebbdff110e7890959c38009002307724aec71 /classes/rssutils.php
parent59c14e9c0001bc7a01763ecc7d3042dcde978a1a (diff)
logger: shorter syntax
Diffstat (limited to 'classes/rssutils.php')
-rwxr-xr-xclasses/rssutils.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/classes/rssutils.php b/classes/rssutils.php
index 0a4040ef3..b6aecb8c9 100755
--- a/classes/rssutils.php
+++ b/classes/rssutils.php
@@ -216,7 +216,7 @@ class RSSUtils {
Debug::log("!! Last error: $error_message");
- Logger::get()->log(E_USER_NOTICE,
+ Logger::log(E_USER_NOTICE,
sprintf("Update process for feed %d (%s, owner UID: %d) failed with exit code: %d (%s).",
$tline["id"], clean($tline["title"]), $tline["owner_uid"], $exit_code, clean($error_message)));
@@ -233,7 +233,7 @@ class RSSUtils {
if (!self::update_rss_feed($tline["id"], true)) {
global $fetch_last_error;
- Logger::get()->log(E_USER_NOTICE,
+ Logger::log(E_USER_NOTICE,
sprintf("Update request for feed %d (%s, owner UID: %d) failed: %s.",
$tline["id"], clean($tline["title"]), $tline["owner_uid"], clean($fetch_last_error)));
}
@@ -241,7 +241,7 @@ class RSSUtils {
Debug::log(sprintf("<= %.4f (sec) (not using a separate process)", microtime(true) - $fstarted));
} catch (PDOException $e) {
- Logger::get()->log_error(E_USER_WARNING, $e->getMessage(), $e->getFile(), $e->getLine(), $e->getTraceAsString());
+ Logger::log_error(E_USER_WARNING, $e->getMessage(), $e->getFile(), $e->getLine(), $e->getTraceAsString());
try {
$pdo->rollback();
@@ -1619,7 +1619,7 @@ class RSSUtils {
$sth->execute();
while ($row = $sth->fetch()) {
- Logger::get()->log(E_USER_NOTICE,
+ Logger::log(E_USER_NOTICE,
sprintf("Auto disabling feed %d (%s, UID: %d) because it failed to update for %d days.",
$row["id"], clean($row["title"]), $row["owner_uid"], Config::get(Config::DAEMON_UNSUCCESSFUL_DAYS_LIMIT)));