mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 15:26:10 -06:00
remove config
This commit is contained in:
parent
8f15f20ab6
commit
a33b5713fc
@ -72,13 +72,12 @@ class ExceptionHandler extends Handler
|
|||||||
|
|
||||||
public function report(Throwable $e)
|
public function report(Throwable $e)
|
||||||
{
|
{
|
||||||
if (app()->bound('sentry')
|
if (app()->bound('sentry') &&
|
||||||
&& $this->shouldReport($e)
|
$this->shouldReport($e) &&
|
||||||
&& env('SENTRY_LARAVEL_DSN')) {
|
env('SENTRY_LARAVEL_DSN') &&
|
||||||
if (config('app.enable_sentry_laravel')) {
|
!empty(env('SENTRY_LARAVEL_DSN'))) {
|
||||||
app('sentry')->captureException($e);
|
app('sentry')->captureException($e);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if ($e instanceof Swift_TransportException) {
|
if ($e instanceof Swift_TransportException) {
|
||||||
die(trans('visiosoft.theme.base::message.error_mail'));
|
die(trans('visiosoft.theme.base::message.error_mail'));
|
||||||
|
|||||||
@ -269,7 +269,4 @@ return [
|
|||||||
|
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
'enable_sentry_laravel' => env('ENABLE_SENTRY_LARAVEL',true),
|
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user