From 55393939cec9517fc43746bc29b99e65aef0891c Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 17 Sep 2020 16:30:11 +0200 Subject: [PATCH] Show lock messages only in verbose mode Signed-off-by: Morris Jobke --- core/Command/Preview/Repair.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/Command/Preview/Repair.php b/core/Command/Preview/Repair.php index 1d4bbec813..c04da7ab53 100644 --- a/core/Command/Preview/Repair.php +++ b/core/Command/Preview/Repair.php @@ -225,7 +225,7 @@ class Repair extends Command { $lockName = 'occ preview:repair lock ' . $oldPreviewFolder->getId(); try { - $section1->writeln(" Locking \"$lockName\" …"); + $section1->writeln(" Locking \"$lockName\" …", OutputInterface::VERBOSITY_VERBOSE); $this->lockingProvider->acquireLock($lockName, ILockingProvider::LOCK_EXCLUSIVE); } catch (LockedException $e) { $section1->writeln(" Skipping because it is locked - another process seems to work on this …"); @@ -280,7 +280,7 @@ class Repair extends Command { } $this->lockingProvider->releaseLock($lockName, ILockingProvider::LOCK_EXCLUSIVE); - $section1->writeln(" Unlocked"); + $section1->writeln(" Unlocked", OutputInterface::VERBOSITY_VERBOSE); $section1->writeln(" Finished migrating previews of file with fileId $name …"); $progressBar->advance();