1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 01:25:56 +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

@@ -30,9 +30,9 @@ class Logger {
return false;
}
function log($string, $context = "") {
function log($errno, $errstr, $context = "") {
if ($this->adapter)
return $this->adapter->log_error(E_USER_NOTICE, $string, '', 0, $context);
return $this->adapter->log_error($errno, $errstr, '', 0, $context);
else
return false;
}