mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
Whoops error handler for debug users.
This commit is contained in:
parent
3d0e26cf63
commit
9755e8b775
2 changed files with 10 additions and 0 deletions
|
@ -108,6 +108,15 @@ define('TOR_TYPE_SILVER', 2);
|
||||||
define('GUEST_UID', -1);
|
define('GUEST_UID', -1);
|
||||||
define('BOT_UID', -746);
|
define('BOT_UID', -746);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whoops error handler
|
||||||
|
*/
|
||||||
|
if (DBG_USER) {
|
||||||
|
$whoops = new \Whoops\Run;
|
||||||
|
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
|
||||||
|
$whoops->register();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Database
|
* Database
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^5.5 || ^7.0",
|
"php": "^5.5 || ^7.0",
|
||||||
"bugsnag/bugsnag": "^3.0",
|
"bugsnag/bugsnag": "^3.0",
|
||||||
|
"filp/whoops": "^2.1",
|
||||||
"gigablah/sphinxphp": "^2.0",
|
"gigablah/sphinxphp": "^2.0",
|
||||||
"google/recaptcha": "^1.0",
|
"google/recaptcha": "^1.0",
|
||||||
"longman/ip-tools": "^1.2",
|
"longman/ip-tools": "^1.2",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue