summaryrefslogtreecommitdiff
path: root/include
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 /include
parent59c14e9c0001bc7a01763ecc7d3042dcde978a1a (diff)
logger: shorter syntax
Diffstat (limited to 'include')
-rw-r--r--include/errorhandler.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/errorhandler.php b/include/errorhandler.php
index 68e2285c1..a59d7a616 100644
--- a/include/errorhandler.php
+++ b/include/errorhandler.php
@@ -54,7 +54,7 @@ function ttrss_error_handler($errno, $errstr, $file, $line) {
$errstr = truncate_middle($errstr, 16384, " (...) ");
if (class_exists("Logger"))
- return Logger::get()->log_error($errno, $errstr, $file, $line, $context);
+ return Logger::log_error($errno, $errstr, $file, $line, $context);
}
function ttrss_fatal_handler() {
@@ -77,7 +77,7 @@ function ttrss_fatal_handler() {
if ($last_query) $errstr .= " [Last query: $last_query]";
if (class_exists("Logger"))
- return Logger::get()->log_error($errno, $errstr, $file, $line, $context);
+ return Logger::log_error($errno, $errstr, $file, $line, $context);
}
return false;