Welcome Guest, Not a member yet? Register   Sign In
Logging Threshold and excluding PHP errors
#3

[eluser]deadelvis[/eluser]
Thanks for the tip, but it doesn't work. Errors still get added to the log:

Code:
ERROR - 2008-06-22 18:45:22 --&gt; Severity: Warning  --&gt; DOMDocument::loadHTMLFile() [<a href='function.DOMDocument-loadHTMLFile'>function.DOMDocument-loadHTMLFile</a>]: End tag : expected '&gt;' in http://www.mydomain.com/mypage, line: 60 scrapers.php 116
ERROR - 2008-06-22 18:45:22 --&gt; Severity: Warning  --&gt; DOMDocument::loadHTMLFile() [<a href='function.DOMDocument-loadHTMLFile'>function.DOMDocument-loadHTMLFile</a>]: Unexpected end tag : scri in http://www.mydomain.com/mypage, line: 60 scrapers.php 116

etc... etc...

I tried all these options (E_NONE doesn't seem to be valid, 0 is the corresponding value it seems):

Code:
$error_reporting = error_reporting(0);
$error_reporting = error_reporting(E_ALL ^ E_WARNING);
ini_set('error_reporting', 0);

In my config the threshold is:
Code:
$config['log_threshold'] = 1;

No clue why CI is still saving PHP warnings to the log. Any other ideas?


Messages In This Thread
Logging Threshold and excluding PHP errors - by El Forum - 06-20-2008, 07:40 PM
Logging Threshold and excluding PHP errors - by El Forum - 06-22-2008, 06:29 AM
Logging Threshold and excluding PHP errors - by El Forum - 06-22-2008, 11:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB