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

debug logging system rework:

* support various logging levels per-message
 * remove hacks like debug_suppress, DAEMON_EXTENDED_DEBUG, etc
 * _debug() is kept as a compatibility shim for plugins
This commit is contained in:
Andrew Dolgov
2018-11-30 08:34:29 +03:00
parent 758752684c
commit c10a43069e
16 changed files with 326 additions and 311 deletions

View File

@@ -47,8 +47,8 @@ class DbUpdater {
print_notice("Query: $line");
print_error("Error: " . implode(", ", $this->pdo->errorInfo()));
} else {
_debug("Query: $line");
_debug("Error: " . implode(", ", $this->pdo->errorInfo()));
Debug::log("Query: $line");
Debug::log("Error: " . implode(", ", $this->pdo->errorInfo()));
}
return false;