aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.php b/index.php
index f7f6843..fb05952 100644
--- a/index.php
+++ b/index.php
@@ -1,10 +1,13 @@
<?php
+use Wcms\Logger;
+
session_start();
require('./vendor/autoload.php');
+Logger::init('w_error.log', 2);
$app = new Wcms\Application();
$app->wakeup();
@@ -30,5 +33,6 @@ try {
if (isreportingerrors()) {
Sentry\captureException($e);
}
+ Logger::exception($e, true);
echo '<h1>⚠ Woops ! There is a little problem : </h1>', $e->getMessage(), "\n";
}