Welcome Guest, Not a member yet? Register   Sign In
Catch database exception
#5

I found in system/Database/MySQLi/Connection.php:329 this code:

PHP Code:
        try
        {
            return 
$this->connID->query($this->prepQuery($sql));
        }
        catch (\
mysqli_sql_exception $e)
        {
            
log_message('error'$e);
            if (
$this->DBDebug)
            {
                throw 
$e;
            }
        } 

Maybe I'm wrong but, if we have DBDebug sets true then we shouldn't call log_message? So I mean that log_message should be inside else. What do you think?
Reply


Messages In This Thread
Catch database exception - by Michal_PB1 - 10-13-2020, 11:44 AM
RE: Catch database exception - by InsiteFX - 10-13-2020, 02:46 PM
RE: Catch database exception - by Michal_PB1 - 10-14-2020, 07:25 AM
RE: Catch database exception - by InsiteFX - 10-14-2020, 11:33 PM
RE: Catch database exception - by Michal_PB1 - 11-30-2020, 01:13 PM
RE: Catch database exception - by InsiteFX - 11-30-2020, 03:07 PM
RE: Catch database exception - by Michal_PB1 - 11-30-2020, 03:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB