From 617b3f79fa3484a1e09ecffafb140fb0f13d9e72 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 17 Sep 2020 16:30:11 +0200 Subject: 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(-) (limited to 'core/Command/Preview') diff --git a/core/Command/Preview/Repair.php b/core/Command/Preview/Repair.php index 1d4bbec813c..c04da7ab532 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(); -- cgit v1.2.3