Whoops error handler for debug users.

This commit is contained in:
Yuriy Pikhtarev 2017-06-08 23:20:50 +03:00
commit 9755e8b775
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
2 changed files with 10 additions and 0 deletions

View file

@ -108,6 +108,15 @@ define('TOR_TYPE_SILVER', 2);
define('GUEST_UID', -1);
define('BOT_UID', -746);
/**
* Whoops error handler
*/
if (DBG_USER) {
$whoops = new \Whoops\Run;
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
$whoops->register();
}
/**
* Database
*/