summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Controller/Base.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Controller/Base.php b/app/Controller/Base.php
index 19de6a93..57a64a3a 100644
--- a/app/Controller/Base.php
+++ b/app/Controller/Base.php
@@ -46,6 +46,10 @@ abstract class Base extends \Core\Base
$this->container = $container;
$this->request = new Request;
$this->response = new Response;
+
+ if (DEBUG) {
+ $this->container['logger']->debug('START_REQUEST='.$_SERVER['REQUEST_URI']);
+ }
}
/**
@@ -63,6 +67,7 @@ abstract class Base extends \Core\Base
$this->container['logger']->debug('SQL_QUERIES={nb}', array('nb' => $this->container['db']->nb_queries));
$this->container['logger']->debug('RENDERING={time}', array('time' => microtime(true) - @$_SERVER['REQUEST_TIME_FLOAT']));
+ $this->container['logger']->debug('END_REQUEST='.$_SERVER['REQUEST_URI']);
}
}