mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Disable Bugsnag by default.
This commit is contained in:
parent
a9509bc2a4
commit
70ce40dfc7
2 changed files with 14 additions and 12 deletions
24
common.php
24
common.php
|
@ -151,17 +151,19 @@ define('BOT_UID', -746);
|
|||
/**
|
||||
* Progressive error reporting
|
||||
*/
|
||||
if ($bb_cfg['bugsnag']['enabled'] && 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') {
|
||||
/** @var Whoops\Run $whoops */
|
||||
$whoops = new \Whoops\Run;
|
||||
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
|
||||
$whoops->register();
|
||||
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);
|
||||
}
|
||||
} else {
|
||||
if (DBG_USER) {
|
||||
/** @var Whoops\Run $whoops */
|
||||
$whoops = new \Whoops\Run;
|
||||
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
|
||||
$whoops->register();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue