我已将错误级别设置为1
in config.php
。但问题是我收到了很多错误NOT ACTUALLY ERRORS in terms of application logic
。
考虑以下代码示例
$deleted = @unlink($filename);
$imap_uid = @imap_uid($con,$msgno);
如您所见,上面的示例不会抛出错误,但如果发生错误,codeigniter 会记录。
是否可以动态禁用错误记录?
我期待这样的事情
// ....
$this->error_log = 0; // disable error logging
//Perform some operation that which may log an error,even its suppressed
$this->error_log = 1; //enable it again
// ...
谢谢。