From 245cef430cb30068234055b265ff3fda19f66057 Mon Sep 17 00:00:00 2001 From: Alexey Shpakovsky Date: Fri, 28 May 2021 23:18:54 +0200 Subject: [PATCH] Revert "more logging" This reverts commit 5aa2d7b8f7a3a257b66a4e666d36f4edaf968bb5. --- abook_class.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/abook_class.php b/abook_class.php index ba324f9..7514031 100755 --- a/abook_class.php +++ b/abook_class.php @@ -20,17 +20,6 @@ use MStilkerich\CardDavClient\Services\{Discovery, Sync, SyncHandler}; use Psr\Log\{AbstractLogger, NullLogger, LogLevel}; use Sabre\VObject\Component\VCard; -class StdoutLogger extends AbstractLogger -{ - public function log($level, $message, array $context = array()) - { - // if ($level !== LogLevel::DEBUG) { - $ctx = empty($context) ? "" : json_encode($context); - echo $message . $ctx . "\n"; - // } - } -} - class NullSyncHandler implements SyncHandler { public function addressObjectChanged(string $uri, string $etag, ?VCard $card): void @@ -51,8 +40,7 @@ class NullSyncHandler implements SyncHandler } } -$log = new StdoutLogger(); -Config::init($log, $log); +Config::init(); /** * address book carddav backend class