From: Morris Jobke Date: Mon, 15 Jul 2019 20:26:08 +0000 (+0200) Subject: Log RuntimeException in CleanupCardDAVPhotoCache X-Git-Tag: v16.0.4RC1~51^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F16414%2Fhead;p=nextcloud-server.git Log RuntimeException in CleanupCardDAVPhotoCache Signed-off-by: Morris Jobke --- 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; }