From 39b8d5c196a1f6ee8d52b6e7dd23361a4ace56e4 Mon Sep 17 00:00:00 2001 From: shimon Date: Mon, 28 Apr 2025 17:48:14 +0300 Subject: [PATCH] cert failure message override --- src/Appwrite/Platform/Workers/Certificates.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Appwrite/Platform/Workers/Certificates.php b/src/Appwrite/Platform/Workers/Certificates.php index 093e6fda5a..2490d64bac 100644 --- a/src/Appwrite/Platform/Workers/Certificates.php +++ b/src/Appwrite/Platform/Workers/Certificates.php @@ -171,10 +171,7 @@ class Certificates extends Action $certificate->setAttribute('issueDate', DateTime::now()); $success = true; } catch (Throwable $e) { - $logs = $e->getMessage(); - - // Set exception as log in certificate document - $certificate->setAttribute('logs', \mb_strcut($logs, 0, 1000000));// Limit to 1MB + $certificate->setAttribute('logs', 'Failed to create custom domain'); // Increase attempts count $attempts = $certificate->getAttribute('attempts', 0) + 1;