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:36:03 +05:30 committed by GitHub
parent 9329287982
commit cf1c914edb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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