1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 01:46:00 +00:00

Logger::log - allow specifying errno

bump severity of PDO exception log messages to E_USER_WARNING
This commit is contained in:
Andrew Dolgov
2020-09-29 10:08:54 +03:00
parent 3b17c45887
commit 82bc740363
4 changed files with 7 additions and 7 deletions

View File

@@ -268,7 +268,7 @@
Debug::log(sprintf("Exception while updating feed %d: %s (%s:%d)",
$options["update-feed"], $e->getMessage(), $e->getFile(), $e->getLine()));
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());
exit(110);
}