Update app/controllers/general.php
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
This commit is contained in:
parent
18994d308a
commit
40ec98569e
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue