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.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/Controller/Base.php b/app/Controller/Base.php
index 4afcba37..cd807d56 100644
--- a/app/Controller/Base.php
+++ b/app/Controller/Base.php
@@ -100,9 +100,11 @@ abstract class Base
*/
public function __destruct()
{
- // foreach ($this->container['db']->getLogMessages() as $message) {
- // $this->container['logger']->addDebug($message);
- // }
+ if (DEBUG) {
+ foreach ($this->container['db']->getLogMessages() as $message) {
+ $this->container['logger']->addDebug($message);
+ }
+ }
}
/**