summaryrefslogtreecommitdiff
path: root/framework/TApplication.php
diff options
context:
space:
mode:
authorxue <>2006-01-29 05:06:04 +0000
committerxue <>2006-01-29 05:06:04 +0000
commit8c89c21a89c114624ab20a8f48c304f0de3727b0 (patch)
treecadaf3b6767b2fc7fd9d5bc8d5360e9e34fd7ccf /framework/TApplication.php
parent397f1f02d104a08321e9500aa65e83e5b3d22c4e (diff)
LogRoutes now work when errors happen during application running.
Diffstat (limited to 'framework/TApplication.php')
-rw-r--r--framework/TApplication.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php
index 80c55e44..5f5c519c 100644
--- a/framework/TApplication.php
+++ b/framework/TApplication.php
@@ -803,10 +803,9 @@ class TApplication extends TComponent
*/
public function onError($param)
{
- if($this->hasEventHandler('OnError'))
- $this->raiseEvent('OnError',$this,$param);
- else
- $this->getErrorHandler()->handleError($this,$param);
+ Prado::log($param->getMessage(),TLogger::ERROR,'System.TApplication');
+ $this->getErrorHandler()->handleError($this,$param);
+ $this->raiseEvent('OnError',$this,$param);
}
/**