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

Use current error_reporting() level to filter errors #29

Merged
merged 2 commits into from
Jun 24, 2014

Conversation

vilius-g
Copy link
Contributor

No description provided.

@@ -273,6 +274,11 @@ protected function _report_php_error($errno, $errstr, $errfile, $errline) {
return;
}

if (!(error_reporting() & $errno) && $this->use_error_reporting) {
Copy link
Member

Choose a reason for hiding this comment

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

I'd switch the order here, so the function call is only made if $this->use_error_reporting is true.

if ($this->use_error_reporting && !(error_reproting() & $errno)) {

@brianr
Copy link
Member

brianr commented Jun 18, 2014

Thanks for the PR! I think we'll be happy to accept, pending the minor changes above. Adding @sbezboro

Restored previous behavior for compatibility reasons.
@sbezboro sbezboro merged commit 1035b83 into rollbar:master Jun 24, 2014
@sbezboro
Copy link
Contributor

Awesome, looks good to me! Merged and released as part of version 0.9.4. Thanks @vilius-g

@brianr
Copy link
Member

brianr commented Jun 24, 2014

👍 thanks @vilius-g!

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.

3 participants