summaryrefslogtreecommitdiff
path: root/app/Controller/Base.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller/Base.php')
-rw-r--r--app/Controller/Base.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Controller/Base.php b/app/Controller/Base.php
index cd807d56..4719ebe4 100644
--- a/app/Controller/Base.php
+++ b/app/Controller/Base.php
@@ -101,9 +101,13 @@ abstract class Base
public function __destruct()
{
if (DEBUG) {
+
foreach ($this->container['db']->getLogMessages() as $message) {
- $this->container['logger']->addDebug($message);
+ $this->container['logger']->debug($message);
}
+
+ $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']));
}
}