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

added sentry exceptions reporting in amqp #15

Closed
wants to merge 1 commit into from
Closed

added sentry exceptions reporting in amqp #15

wants to merge 1 commit into from

Conversation

strorch
Copy link
Contributor

@strorch strorch commented Apr 1, 2021

No description provided.

@strorch strorch requested a review from SilverFire April 1, 2021 06:47
@@ -104,6 +104,9 @@ private function handleError(string $queueName, AMQPMessage $message, \Exception
Console::error(' [E] Error: ' . $exception->getMessage());
$this->logger->warning('Failed to handle message: ' . $exception->getMessage(), ['amqpMessage' => $message, 'exception' => $exception]);
$this->storeRejected($queueName, $message, $exception);
try {
\Sentry\captureException($exception);
Copy link
Member

Choose a reason for hiding this comment

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

$this->logger->warning() при переданном 'exception' => $exception должен логировать это в Sentry.

Этот код кажется лишним.

@strorch strorch closed this Apr 1, 2021
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.

2 participants