From: Andrey Kutejko Date: Sun, 23 Jun 2013 14:56:33 +0000 (+0300) Subject: more verbose errors X-Git-Tag: 0.5~209 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=6f3e378265aab815740fc5fb122ac809ccc93f9d;p=ipf.git more verbose errors --- 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