From dc26ce308dd4a1306a1d56c73d7358af219b1a71 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 15 Apr 2023 10:33:33 +0200 Subject: [PATCH] Add decrypt message. --- app/Repositories/Attachment/AttachmentRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Repositories/Attachment/AttachmentRepository.php b/app/Repositories/Attachment/AttachmentRepository.php index 18f6427d01..2d1f89e464 100644 --- a/app/Repositories/Attachment/AttachmentRepository.php +++ b/app/Repositories/Attachment/AttachmentRepository.php @@ -84,10 +84,10 @@ class AttachmentRepository implements AttachmentRepositoryInterface if ($disk->exists($file)) { $encryptedContent = (string)$disk->get($file); - try { $unencryptedContent = Crypt::decrypt($encryptedContent); // verified } catch (DecryptException $e) { + Log::debug(sprintf('Could not decrypt attachment #%d but this is fine: %s', $attachment->id, $e->getMessage())); $unencryptedContent = $encryptedContent; } }