1
0
Fork 0
mirror of synced 2024-07-08 07:55:48 +12:00

minor adjustments

This commit is contained in:
shimon 2022-12-25 19:16:38 +02:00
parent e533f8f067
commit 3954137382

View file

@ -212,7 +212,7 @@ $databaseListener = function (string $event, Document $document, Document $proje
$log = new Log();
$isProduction = App::getEnv('_APP_ENV', 'development') === 'production';
$log
->setNamespace("appwrite-worker")
->setNamespace("appwrite-stats-api")
->setServer(\gethostname())
->setVersion(App::getEnv('_APP_VERSION', 'UNKNOWN'))
->setType(Log::TYPE_ERROR)
@ -220,6 +220,7 @@ $databaseListener = function (string $event, Document $document, Document $proje
->setAction('appwrite-queue-usage')
->addTag('verboseType', get_class($error))
->addTag('code', $error->getCode())
->addExtra('event', $event)
->addExtra('collection', $document->getCollection())
->addExtra('file', $error->getFile())
->addExtra('line', $error->getLine())