diff options
Diffstat (limited to 'app/Controller/Base.php')
-rw-r--r-- | app/Controller/Base.php | 8 |
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); + } + } } /** |