mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
Disable Bugsnag by default.
This commit is contained in:
parent
a9509bc2a4
commit
70ce40dfc7
2 changed files with 14 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -415,7 +415,7 @@ $bb_cfg['adv_email'] = "adv@$domain_name";
|
|||
|
||||
// Bugsnag error reporting
|
||||
$bb_cfg['bugsnag'] = [
|
||||
'enabled' => true,
|
||||
'enabled' => false,
|
||||
'api_key' => 'ee1adc9739cfceb01ce4a450ae1e52bf',
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue