Welcome Guest, Not a member yet? Register   Sign In
Preventing error from log file
#1

[eluser]steelaz[/eluser]
Setup:

Fresh CI 1.6.2 install
$config['log_threshold'] = 1;

Code:

Code:
$string = 0;        

if (FALSE === ($result = @unserialize($string)))
{
    echo "false";
}
else
{
    var_dump($result);
}

I suppress error message from showing up by adding '@' to 'unserialize', but it still gets into log file. I use this function a lot and log file becomes unreadable. Is there any way to prevent CI from logging this?




Theme © iAndrew 2016 - Forum software by © MyBB