mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
Update src/Appwrite/Platform/Workers/Certificates.php
Co-authored-by: Matej Bačo <matejbacocom@gmail.com>
This commit is contained in:
parent
e7a44c9fb2
commit
a48007d548
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue