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

logger: shorter syntax

This commit is contained in:
Andrew Dolgov
2021-02-25 15:49:30 +03:00
parent 59c14e9c00
commit dcf0135285
13 changed files with 45 additions and 25 deletions

View File

@@ -21,7 +21,7 @@ class Logger_Stdout {
$priority = LOG_INFO;
}
$errname = Logger::$errornames[$errno] . " ($errno)";
$errname = Logger::ERROR_NAMES[$errno] . " ($errno)";
print "[EEE] $priority $errname ($file:$line) $errstr\n";

View File

@@ -21,7 +21,7 @@ class Logger_Syslog {
$priority = LOG_INFO;
}
$errname = Logger::$errornames[$errno] . " ($errno)";
$errname = Logger::ERROR_NAMES[$errno] . " ($errno)";
syslog($priority, "[tt-rss] $errname ($file:$line) $errstr");