1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Stop sending errors to Sentry for anything except for the regular app API user

This commit is contained in:
Jon Ziebell 2020-03-06 07:56:33 -05:00
parent e1f55b541f
commit b740d75760

View File

@ -715,7 +715,8 @@ final class cora {
if (
$reportable === true &&
$this->setting->get('sentry_key') !== null &&
$this->setting->get('sentry_project_id') !== null
$this->setting->get('sentry_project_id') !== null &&
$api_user_id === 1
) {
$data = [
'event_id' => str_replace('-', '', exec('uuidgen -r')),