mirror of
https://github.com/beestat/app.git
synced 2025-07-09 03:04:07 -04:00
Only report exceptions on live
This commit is contained in:
parent
707954a620
commit
8054a10329
@ -712,7 +712,7 @@ final class cora {
|
||||
|
||||
// Send data to Sentry for error logging.
|
||||
// https://docs.sentry.io/development/sdk-dev/event-payloads/
|
||||
if ($reportable === true) {
|
||||
if ($reportable === true && $this->setting->get('environment') === 'live') {
|
||||
$data = [
|
||||
'event_id' => str_replace('-', '', exec('uuidgen -r')),
|
||||
'timestamp' => date('c'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user