mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Only report exceptions we want to see
This commit is contained in:
parent
d303cbd7cb
commit
3a470ce789
|
@ -7,6 +7,7 @@ use Illuminate\Auth\AuthenticationException;
|
|||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
||||
use App\Helpers\Helper;
|
||||
use Illuminate\Validation\ValidationException;
|
||||
use Log;
|
||||
|
||||
class Handler extends ExceptionHandler
|
||||
{
|
||||
|
@ -34,8 +35,10 @@ class Handler extends ExceptionHandler
|
|||
*/
|
||||
public function report(Exception $exception)
|
||||
{
|
||||
\Log::error($exception); // rollbar
|
||||
parent::report($exception);
|
||||
if ($this->shouldReport($exception)) {
|
||||
Log::error($exception);
|
||||
return parent::report($exception);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue