Closed adamtester closed 9 years ago
Hey, had a quick look, and I believe airbrake changed their api a little bit. As an alternative, try adding your exceptions to the
protected $dontReport = [
HttpException::class,
ModelNotFoundException::class,
];
Inside app/Exceptions/Handler.php
And that should skip the airbrake integration completely!
If that doesn't work I'll take a deeper look to find the problem!
Hmm my $dontReport
already has HttpException
protected $dontReport = [
HttpException::class,
];
I wouldn't mind the 404 errors but I get about 20 a day just from bots trying to hack the site lol
@AdamTester can you please test out the change and see if it resolves your issue?
@rigor789 ok for some reason I can't get it to work, nginx returns a 500 with no errors in any logs when I use the code... I'll keep looking into it.
Ok the problem is this line
if($this->shouldReport($e)) {
change it to
if($this->handler->shouldReport($e)) {
Sorry, that was a mistake on my part, does the updated code work properly?
It does on my local, I'll try and test on my production at some point today
Tested on production and all working fine! Thanks!
I can't seem to ignore 404 errors, this is what I have:
But they still show up in airbrake?