mirror of
https://github.com/appwrite/appwrite
synced 2026-05-21 16:08:22 +00:00
adding requests count on error
This commit is contained in:
parent
e1ac0d622e
commit
8aabb92fda
1 changed files with 5 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ use Utopia\Database\Document;
|
|||
use Utopia\Database\Helpers\Role;
|
||||
use Utopia\Database\Validator\Authorization;
|
||||
use Utopia\Logger\Log\User;
|
||||
use Utopia\Logger\Logger;
|
||||
use Utopia\System\System;
|
||||
use Utopia\Validator\WhiteList;
|
||||
|
||||
|
|
@ -755,6 +756,10 @@ App::error()
|
|||
$publish = $error->getCode() === 0 || $error->getCode() >= 500;
|
||||
}
|
||||
|
||||
if ($error->getCode() >= 400 && $error->getCode() < 500) {
|
||||
$publish = true;
|
||||
}
|
||||
|
||||
if ($publish && $project->getId() !== 'console') {
|
||||
if (!Auth::isPrivilegedUser(Authorization::getRoles())) {
|
||||
$fileSize = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue