diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-09-23 18:00:00 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-09-23 21:48:55 +0300 |
commit | 635e03fc71980d4b6f7b4aa2958af7a557c7f974 (patch) | |
tree | 53ba2e799afe223dbaca5e5aa1377294176626d5 /tests/Integration | |
parent | 57e02700a69edccddeaa1f169cb18335e8baf5db (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.php | 3 |
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; } |