diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-05-31 13:46:33 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-05-31 13:46:33 -0400 |
commit | 3f3363c1776d4f2eca227696521c3877accd9138 (patch) | |
tree | e71c417320a98ddfc73a20e569d8799ceea56485 /app | |
parent | 0f01bc90de13ba24bd54b33ea5235f32c8453d0a (diff) |
Add more debug info for controllers
Diffstat (limited to 'app')
-rw-r--r-- | app/Controller/Base.php | 5 |
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']); } } |