Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Client error logging #5696

Closed
wants to merge 1 commit into from
Closed

Conversation

Meldiron
Copy link
Contributor

What does this PR do?

Adds origin to sentry logs and enables logging for 4XX errors for better error insights.

Test Plan

  • Manual QA

CleanShot 2023-06-13 at 13 36 12@2x

Related PRs and Issues

x

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

$log->setMessage($error->getMessage());

$origin = $error->getCode() >= 500 || $error->getCode() === 0 ? 'server' : 'client';
$log->addTag('origin', $origin);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Christy wanted differnet name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants