rollbar-php icon indicating copy to clipboard operation
rollbar-php copied to clipboard

Issue logging Symfony Doctrine errors

Open apphancer opened this issue 4 years ago • 1 comments

It seems like errors with Symfony Doctrine (e.g. SQL errors) are not getting logged.

The log() method of RollbarLogger stops at $serialized = $payload->serialize($this->config->getMaxNestingDepth()); and the response doesn't get sent.

This is happening with Symfony 5.3.3 and PHP 8.0.9

apphancer avatar Sep 23 '21 12:09 apphancer

Thanks @apphancer for the report. Let's see if we can get to the bottom of it. I'm seeking some clarification in the comments below.

It seems like errors with Symfony Doctrine (e.g. SQL errors) are not getting logged.

The log() method of RollbarLogger stops at $serialized = $payload->serialize($this->config->getMaxNestingDepth()); and the response doesn't get sent.

When you say "stops", do you mean the program exits? If so, is there some kind of PHP message being emitted, such as: PHP Fatal error: Allowed memory size of 8388608 bytes exhausted?

Or by "stops" do you mean the program stops making progress and just sits at that line?

Could you share the code you're using to invoke Rollbar as well as a sanitized example of the error being given to Rollbar? Also, could you share your Rollbar configuration, especially including the value of the max_nesting_depth parameter?

This is happening with Symfony 5.3.3 and PHP 8.0.9

To clarify, are you using rollbar-php-symfony-bundle, or are you rolling your own use of rollbar-php inside of a Symfony-based app?

bishopb avatar Nov 14 '21 14:11 bishopb

Closed due to inactivity.

danielmorell avatar Mar 17 '23 11:03 danielmorell