commit
ee77c3e660
@ -52,3 +52,5 @@ MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
|
|||||||
# https://www.google.com/recaptcha
|
# https://www.google.com/recaptcha
|
||||||
NOCAPTCHA_SECRET=
|
NOCAPTCHA_SECRET=
|
||||||
NOCAPTCHA_SITEKEY=
|
NOCAPTCHA_SITEKEY=
|
||||||
|
|
||||||
|
SENTRY_LARAVEL_DSN=
|
||||||
|
@ -32,6 +32,10 @@ class Handler extends ExceptionHandler
|
|||||||
*/
|
*/
|
||||||
public function report(Exception $exception)
|
public function report(Exception $exception)
|
||||||
{
|
{
|
||||||
|
if (app()->bound('sentry') && $this->shouldReport($exception)) {
|
||||||
|
app('sentry')->captureException($exception);
|
||||||
|
}
|
||||||
|
|
||||||
parent::report($exception);
|
parent::report($exception);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
"league/csv": "^9.5",
|
"league/csv": "^9.5",
|
||||||
"misd/linkify": "^1.1",
|
"misd/linkify": "^1.1",
|
||||||
"openpear/stream_filter_mbstring": "dev-master",
|
"openpear/stream_filter_mbstring": "dev-master",
|
||||||
|
"sentry/sentry-laravel": "1.8.0",
|
||||||
"staudenmeir/eloquent-eager-limit": "^1.0",
|
"staudenmeir/eloquent-eager-limit": "^1.0",
|
||||||
"symfony/css-selector": "^4.3",
|
"symfony/css-selector": "^4.3",
|
||||||
"symfony/dom-crawler": "^4.3"
|
"symfony/dom-crawler": "^4.3"
|
||||||
|
1581
composer.lock
generated
1581
composer.lock
generated
File diff suppressed because it is too large
Load Diff
30
config/sentry.php
Normal file
30
config/sentry.php
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
|
||||||
|
'dsn' => env('SENTRY_LARAVEL_DSN', env('SENTRY_DSN')),
|
||||||
|
|
||||||
|
// capture release as git sha
|
||||||
|
// 'release' => trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')),
|
||||||
|
|
||||||
|
'breadcrumbs' => [
|
||||||
|
// Capture Laravel logs in breadcrumbs
|
||||||
|
'logs' => true,
|
||||||
|
|
||||||
|
// Capture SQL queries in breadcrumbs
|
||||||
|
'sql_queries' => true,
|
||||||
|
|
||||||
|
// Capture bindings on SQL queries logged in breadcrumbs
|
||||||
|
'sql_bindings' => true,
|
||||||
|
|
||||||
|
// Capture queue job information in breadcrumbs
|
||||||
|
'queue_info' => true,
|
||||||
|
|
||||||
|
// Capture command information in breadcrumbs
|
||||||
|
'command_info' => true,
|
||||||
|
],
|
||||||
|
|
||||||
|
// @see: https://docs.sentry.io/error-reporting/configuration/?platform=php#send-default-pii
|
||||||
|
'send_default_pii' => false,
|
||||||
|
|
||||||
|
];
|
@ -26,7 +26,7 @@
|
|||||||
"date-fns": "^1.30.1",
|
"date-fns": "^1.30.1",
|
||||||
"eslint": "^7.2.0",
|
"eslint": "^7.2.0",
|
||||||
"eslint-config-prettier": "^6.11.0",
|
"eslint-config-prettier": "^6.11.0",
|
||||||
"eslint-plugin-prettier": "^3.1.3",
|
"eslint-plugin-prettier": "^3.1.4",
|
||||||
"eslint-plugin-vue": "^6.2.2",
|
"eslint-plugin-vue": "^6.2.2",
|
||||||
"husky": "^1.3.1",
|
"husky": "^1.3.1",
|
||||||
"jquery": "^3.5.0",
|
"jquery": "^3.5.0",
|
||||||
|
@ -3030,10 +3030,10 @@ eslint-config-prettier@^6.11.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
get-stdin "^6.0.0"
|
get-stdin "^6.0.0"
|
||||||
|
|
||||||
eslint-plugin-prettier@^3.1.3:
|
eslint-plugin-prettier@^3.1.4:
|
||||||
version "3.1.3"
|
version "3.1.4"
|
||||||
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.3.tgz#ae116a0fc0e598fdae48743a4430903de5b4e6ca"
|
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.4.tgz#168ab43154e2ea57db992a2cd097c828171f75c2"
|
||||||
integrity sha512-+HG5jmu/dN3ZV3T6eCD7a4BlAySdN7mLIbJYo0z1cFQuI+r2DiTJEFeF68ots93PsnrMxbzIZ2S/ieX+mkrBeQ==
|
integrity sha512-jZDa8z76klRqo+TdGDTFJSavwbnWK2ZpqGKNZ+VvweMW516pDUMmQ2koXvxEE4JhzNvTv+radye/bWGBmA6jmg==
|
||||||
dependencies:
|
dependencies:
|
||||||
prettier-linter-helpers "^1.0.0"
|
prettier-linter-helpers "^1.0.0"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user