the browser-facing portion of osu!
at master 26 lines 856 B view raw
1<?php 2 3$configOsu = include __DIR__.'/osu.php'; 4 5return [ 6 'dsn' => env('APP_SENTRY'), 7 8 // capture release as git sha 9 'release' => $configOsu['git-sha'], 10 11 // When left empty or `null` the Laravel environment will be used 12 'environment' => env('APP_SENTRY_ENVIRONMENT'), 13 14 // Copied from [1] to prevent E_NOTICE and E_WARNING (and maybe others) 15 // from either being reported twice or incorrectly reported after caught. 16 // There's probably better set of types but it's easier to just copy whatever 17 // used by the old library. 18 // [1] https://github.com/getsentry/raven-php/blob/a90cdcf681a373b5150ee2b430db28d9f670abea/lib/Raven/ErrorHandler.php#L71 19 'error_types' => E_ERROR 20 | E_PARSE 21 | E_CORE_ERROR 22 | E_CORE_WARNING 23 | E_COMPILE_ERROR 24 | E_COMPILE_WARNING 25 | E_STRICT, 26];