Disable flag, update packages.

This commit is contained in:
James Cole
2021-06-05 07:38:49 +02:00
parent 38dcb96086
commit fa50f76f5d
4 changed files with 165 additions and 1168 deletions

View File

@@ -138,14 +138,6 @@ class Handler extends ExceptionHandler
*/ */
public function report(Throwable $e) public function report(Throwable $e)
{ {
// do sentry (telemetry)
if (!(false === config('firefly.send_telemetry') || false === config('firefly.feature_flags.telemetry'))) {
if (app()->bound('sentry') && $this->shouldReport($e)) {
app('sentry')->captureException($e);
}
}
// do email the user (no telemetry) // do email the user (no telemetry)
$doMailError = config('firefly.send_error_message'); $doMailError = config('firefly.send_error_message');
if ($this->shouldntReportLocal($e) || !$doMailError) { if ($this->shouldntReportLocal($e) || !$doMailError) {

View File

@@ -101,7 +101,6 @@
"predis/predis": "^1.1", "predis/predis": "^1.1",
"ramsey/uuid": "^4.1", "ramsey/uuid": "^4.1",
"rcrowe/twigbridge": "^0.12.1", "rcrowe/twigbridge": "^0.12.1",
"sentry/sentry-laravel": "^2.6",
"spatie/data-transfer-object": "^3.1" "spatie/data-transfer-object": "^3.1"
}, },
"require-dev": { "require-dev": {

1322
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -97,7 +97,7 @@ return [
// some feature flags: // some feature flags:
'feature_flags' => [ 'feature_flags' => [
'export' => true, 'export' => true,
'telemetry' => true, 'telemetry' => false,
'webhooks' => false, 'webhooks' => false,
'handle_debts' => true, 'handle_debts' => true,
], ],