Skip to content

Commit

Permalink
Merge pull request #5711 from appwrite/feat-database-sentry-logging
Browse files Browse the repository at this point in the history
Feat: Add database to log
  • Loading branch information
christyjacob4 committed Jun 15, 2023
2 parents ce1ad82 + 97581d5 commit 9fbb8c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@
$log->setType(Log::TYPE_ERROR);
$log->setMessage($error->getMessage());

$log->addTag('database', $project->getAttribute('database', 'console'));
$log->addTag('method', $route->getMethod());
$log->addTag('url', $route->getPath());
$log->addTag('verboseType', get_class($error));
Expand Down

0 comments on commit 9fbb8c2

Please sign in to comment.