From f7a6f4527e55c8d02ffcd8e5a8078b0560fc2e71 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 15 Jul 2019 22:26:08 +0200 Subject: [PATCH] Log RuntimeException in CleanupCardDAVPhotoCache Signed-off-by: Morris Jobke --- lib/private/Repair/NC16/CleanupCardDAVPhotoCache.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/private/Repair/NC16/CleanupCardDAVPhotoCache.php b/lib/private/Repair/NC16/CleanupCardDAVPhotoCache.php index 92ffcb54742..f0e5c2b2a1f 100644 --- a/lib/private/Repair/NC16/CleanupCardDAVPhotoCache.php +++ b/lib/private/Repair/NC16/CleanupCardDAVPhotoCache.php @@ -64,7 +64,10 @@ class CleanupCardDAVPhotoCache implements IRepairStep { private function repair(IOutput $output): void { try { $folders = $this->appData->getDirectoryListing(); - } catch (NotFoundException|RuntimeException $e) { + } catch (NotFoundException $e) { + return; + } catch (RuntimeException $e) { + $this->logger->logException($e, ['message' => 'Failed to fetch directory listing in CleanupCardDAVPhotoCache']); return; } -- 2.39.5