diff options
-rw-r--r-- | index.php | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -13,13 +13,24 @@ require('./vendor/autoload.php'); $app = new Wcms\Application(); $app->wakeup(); -Sentry\init(['dsn' => Wcms\Config::sentrydsn()]); +Sentry\init([ + 'dsn' => Wcms\Config::sentrydsn(), + 'release' => 'w_cms_v' . getversion(), + 'project_root' => 'app', +]); +Sentry\configureScope(function (Sentry\State\Scope $scope): void { + $scope->setUser([ + 'id' => Wcms\Config::url(), + 'username' => Wcms\Config::basepath(), + ]); +}); try { $matchoper = new Wcms\Routes(); $matchoper->match(); } catch (Exception $e) { + Sentry\captureException($e); echo '<h1>⚠ Woops ! There is a little problem : </h1>', $e->getMessage(), "\n"; } |