Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-09-23 18:00:00 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-09-23 21:48:55 +0300
commit635e03fc71980d4b6f7b4aa2958af7a557c7f974 (patch)
tree53ba2e799afe223dbaca5e5aa1377294176626d5 /tests/Integration
parent57e02700a69edccddeaa1f169cb18335e8baf5db (diff)
Add debug output to sync processes triggered via the CLI
Just like a CLI priority inbox model training gives all the details, we want to have the same to diagnose slow/faulty account syncs. This changes the console logger adapter for the PSR logger and adds it to the sync process. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests/Integration')
-rw-r--r--tests/Integration/Framework/ImapTestAccount.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/Integration/Framework/ImapTestAccount.php b/tests/Integration/Framework/ImapTestAccount.php
index c87db9dbe..0189884e1 100644
--- a/tests/Integration/Framework/ImapTestAccount.php
+++ b/tests/Integration/Framework/ImapTestAccount.php
@@ -26,6 +26,7 @@ use OCA\Mail\Account;
use OCA\Mail\Db\MailAccount;
use OCA\Mail\IMAP\MailboxSync;
use OCA\Mail\Service\AccountService;
+use Psr\Log\NullLogger;
trait ImapTestAccount {
@@ -63,7 +64,7 @@ trait ImapTestAccount {
/** @var MailboxSync $mbSync */
$mbSync = OC::$server->query(MailboxSync::class);
- $mbSync->sync(new Account($mailAccount));
+ $mbSync->sync(new Account($mailAccount), new NullLogger());
return $acc;
}