SentryIntegration: fix logging errors
This commit is contained in:
parent
4b73564f31
commit
7693ea44ee
1 changed files with 8 additions and 1 deletions
|
@ -40,8 +40,15 @@ class SentryIntegration {
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
self :: $dsn = App::get('sentry.dsn');
|
||||||
|
if (!self :: $dsn) {
|
||||||
|
Log :: trace("SentryIntegration::init(): no DSN configured");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
\Sentry\init([
|
\Sentry\init([
|
||||||
'dsn' => App::get('sentry.dsn'),
|
'dsn' => self :: $dsn,
|
||||||
'traces_sample_rate' => App::get('sentry.traces_sample_rate', null, 'float'),
|
'traces_sample_rate' => App::get('sentry.traces_sample_rate', null, 'float'),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue