1
0
Fork 0
mirror of synced 2024-10-02 10:16:27 +13:00

Update app/controllers/general.php

Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
This commit is contained in:
Khushboo Verma 2023-11-17 18:35:26 +05:30 committed by GitHub
parent 18994d308a
commit 40ec98569e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -614,7 +614,7 @@ App::error()
$publishLog = $error->getLog();
}
if ($logger) {
if ($logger && publish) {
if (($error->getCode() >= 500 || $error->getCode() === 0) && $publishLog) {
try {
/** @var Utopia\Database\Document $user */