From c10a43069ec1e71b6608574a81fb29c76919e132 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 30 Nov 2018 08:34:29 +0300 Subject: 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 --- plugins/import_export/init.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/import_export/init.php') diff --git a/plugins/import_export/init.php b/plugins/import_export/init.php index a3413f307..ef1e2db65 100755 --- a/plugins/import_export/init.php +++ b/plugins/import_export/init.php @@ -24,11 +24,11 @@ class Import_Export extends Plugin implements IHandler { return; } - _debug("please enter your username:"); + Debug::log("please enter your username:"); $username = trim(read_stdin()); - _debug("importing $filename for user $username...\n"); + Debug::log("importing $filename for user $username...\n"); $sth = $this->pdo->prepare("SELECT id FROM ttrss_users WHERE login = ?"); $sth->execute($username); -- cgit v1.2.3