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:
-rw-r--r--doc/admin.md2
-rw-r--r--lib/Support/ConsoleLoggerDecorator.php4
-rw-r--r--tests/psalm-baseline.xml4
3 files changed, 7 insertions, 3 deletions
diff --git a/doc/admin.md b/doc/admin.md
index 827bb7796..c71af1ae0 100644
--- a/doc/admin.md
+++ b/doc/admin.md
@@ -135,7 +135,7 @@ In this example, `1393` is the *account ID*.
To troubleshoot synchronization or threading problems it's helpful to run the sync from the command line while the user does not use the web interface (reduces chances of a conflict):
```bash
-php -f occ mail:account:sync 1393
+php -f occ mail:account:sync -vvv 1393
```
1393 represents the [account ID](#get-account-ids).
diff --git a/lib/Support/ConsoleLoggerDecorator.php b/lib/Support/ConsoleLoggerDecorator.php
index 4828eb34a..20ef27f9f 100644
--- a/lib/Support/ConsoleLoggerDecorator.php
+++ b/lib/Support/ConsoleLoggerDecorator.php
@@ -85,6 +85,10 @@ class ConsoleLoggerDecorator implements LoggerInterface {
}
public function debug($message, array $context = []) {
+ if ($this->consoleOutput->getVerbosity() < OutputInterface::VERBOSITY_DEBUG) {
+ return;
+ }
+
$this->consoleOutput->writeln("[debug] $message");
$this->inner->debug($message, $context);
diff --git a/tests/psalm-baseline.xml b/tests/psalm-baseline.xml
index d6ab15013..3725a7656 100644
--- a/tests/psalm-baseline.xml
+++ b/tests/psalm-baseline.xml
@@ -345,10 +345,10 @@
</MissingDependency>
</file>
<file src="lib/Support/ConsoleLoggerDecorator.php">
- <UndefinedClass occurrences="1">
+ <UndefinedClass occurrences="2">
<code>OutputInterface</code>
</UndefinedClass>
- <UndefinedDocblockClass occurrences="10">
+ <UndefinedDocblockClass occurrences="11">
<code>$this-&gt;consoleOutput</code>
<code>$this-&gt;consoleOutput</code>
<code>$this-&gt;consoleOutput</code>