Disable Bugsnag by default.

This commit is contained in:
Yuriy Pikhtarev 2017-06-22 23:16:51 +03:00
commit 70ce40dfc7
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
2 changed files with 14 additions and 12 deletions

View file

@ -151,18 +151,20 @@ define('BOT_UID', -746);
/**
* Progressive error reporting
*/
if ($bb_cfg['bugsnag']['enabled'] && env('APP_ENV', 'production') !== 'local') {
if ($bb_cfg['bugsnag']['enabled']) {
if (env('APP_ENV', 'production') !== 'local') {
/** @var Bugsnag\Handler $bugsnag */
$bugsnag = Bugsnag\Client::make($bb_cfg['bugsnag']['api_key']);
Bugsnag\Handler::register($bugsnag);
}
if (DBG_USER && env('APP_ENV', 'production') === 'local') {
} else {
if (DBG_USER) {
/** @var Whoops\Run $whoops */
$whoops = new \Whoops\Run;
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
$whoops->register();
}
}
/**
* Database

View file

@ -415,7 +415,7 @@ $bb_cfg['adv_email'] = "adv@$domain_name";
// Bugsnag error reporting
$bb_cfg['bugsnag'] = [
'enabled' => true,
'enabled' => false,
'api_key' => 'ee1adc9739cfceb01ce4a450ae1e52bf',
];