summaryrefslogtreecommitdiff
path: root/classes/rssutils.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-09-29 10:08:54 +0300
committerAndrew Dolgov <[email protected]>2020-09-29 10:08:54 +0300
commit82bc740363e8d9f3c7a070444b0d1fae45f837c7 (patch)
tree32ef56f47d50c1653a1d39c4ee7082a7d3f4016b /classes/rssutils.php
parent3b17c45887ecfa98779be53b30125e636dd9a783 (diff)
Logger::log - allow specifying errno
bump severity of PDO exception log messages to E_USER_WARNING
Diffstat (limited to 'classes/rssutils.php')
-rwxr-xr-xclasses/rssutils.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/rssutils.php b/classes/rssutils.php
index 35955b193..6b0ae2c32 100755
--- a/classes/rssutils.php
+++ b/classes/rssutils.php
@@ -176,7 +176,7 @@ class RSSUtils {
Debug::log("!! Last error: $error_message");
- Logger::get()->log(
+ Logger::get()->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)));
}
@@ -186,7 +186,7 @@ class RSSUtils {
if (!self::update_rss_feed($tline["id"], true)) {
global $fetch_last_error;
- Logger::get()->log(
+ Logger::get()->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)));
}
@@ -194,7 +194,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_NOTICE, $e->getMessage(), $e->getFile(), $e->getLine(), $e->getTraceAsString());
+ Logger::get()->log_error(E_USER_WARNING, $e->getMessage(), $e->getFile(), $e->getLine(), $e->getTraceAsString());
try {
$pdo->rollback();