1
0
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:
Jon Ziebell 2020-01-28 18:38:08 -05:00
parent 707954a620
commit 8054a10329

View File

@ -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'),