From 6f3e378265aab815740fc5fb122ac809ccc93f9d Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Sun, 23 Jun 2013 17:56:33 +0300 Subject: [PATCH] more verbose errors --- ipf/project.php | 2 ++ ipf/router.php | 1 + 2 files changed, 3 insertions(+) diff --git a/ipf/project.php b/ipf/project.php index 24d5ac7..7c575ea 100644 --- a/ipf/project.php +++ b/ipf/project.php @@ -95,6 +95,8 @@ final class IPF_Project public function run() { if (IPF::get('debug')) { + error_reporting(E_ALL); + $this->sqlProfiler = new IPF_ORM_Connection_Profiler(); IPF_ORM_Manager::getInstance()->dbListeners[] = $this->sqlProfiler; } diff --git a/ipf/router.php b/ipf/router.php index a41d936..b790630 100644 --- a/ipf/router.php +++ b/ipf/router.php @@ -4,6 +4,7 @@ class IPF_Router { public static function response500($e) { + error_log($e); if (IPF::get('debug')) return new IPF_HTTP_Response_ServerErrorDebug($e); else -- 2.49.0