Update src/Appwrite/Platform/Workers/Certificates.php

Co-authored-by: Matej Bačo <matejbacocom@gmail.com>
This commit is contained in:
Khushboo Verma 2025-09-11 15:40:29 +05:30 committed by GitHub
parent e7a44c9fb2
commit a48007d548
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -208,7 +208,7 @@ class Certificates extends Action
$date = \date('H:i:s');
$errorMessage = "\033[90m[{$date}] \033[31mCertificate generation failed: \033[0m\n";
$certificate->setAttribute('logs', $currentLogs . $errorMessage . \mb_strcut($logs, 0, 1000000));// Limit to 1MB
$certificate->setAttribute('logs', $currentLogs . $errorMessage . \mb_strcut($logs, 0, 500000));// Limit to 500kb
// Increase attempts count
$attempts = $certificate->getAttribute('attempts', 0) + 1;