Revert "more logging"

This reverts commit 5aa2d7b8f7.
This commit is contained in:
Alexey Shpakovsky 2021-05-28 23:18:54 +02:00
parent 5aa2d7b8f7
commit 245cef430c
No known key found for this signature in database
GPG key ID: 5797A726A2A4230A

View file

@ -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