php – Yii log跳过404错误

前端之家收集整理的这篇文章主要介绍了php – Yii log跳过404错误前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
也许存在跳过404异常的解决方案?我不能将这些消息存储在日志文件中吗?
2015/04/09 12:28:52 [error] [exception.CHttpException.404] exception 'CHttpException' with message 'Невозможно обработать запрос "offer/downloadOffer".' in /var/www/yii/framework/web/CWebApplication.PHP:286
Stack trace:
#0 /var/www/yii/framework/web/CWebApplication.PHP(141): CWebApplication->runController('offer/downloadO...')
#1 /var/www/yii/framework/base/CApplication.PHP(184): CWebApplication->processRequest()
#2 /var/www/LAP/www/index.PHP(16): CApplication->run()
#3 {main}
REQUEST_URI=/offer/downloadOffer
解决方案是排除类别.
array(
'class' => 'CFileLogRoute','categories' => '!exception.CHttpException.404'
),array(
'class' => 'CEmailLogRoute','categories' => '!exception.CHttpException.*'
),
原文链接:https://www.f2er.com/php/134683.html

猜你在找的PHP相关文章