开发者

How to block php errors to be logged in codeigniter

How to block 开发者_运维问答the php errors like Severity: Notice —> Undefined variable

to be get logged in codeigniter , even by keeping the log threshold level at 3 at config settings.

this scenario occurs due to that all variables are not getting used each and every time.

thanks in advance


error_reporting(E_ALL & ~E_WARNING & ~E_NOTICE & ~E_DEPRECATED);

This will suppress all warnings, notice and deprecated(if using php 5.3) messages.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜