diff --git a/includes/dbFacile.php b/includes/dbFacile.php index 2403077037..37ac6a7a20 100644 --- a/includes/dbFacile.php +++ b/includes/dbFacile.php @@ -118,7 +118,7 @@ function dbQuery($sql, $parameters = array()) if (isset($config['mysql_log_level']) && ((in_array($config['mysql_log_level'], array('INFO', 'ERROR')) && !preg_match('/Duplicate entry/', $mysql_error)) || in_array($config['mysql_log_level'], array('DEBUG')))) { if (!empty($mysql_error)) { $error_msg = "MySQL Error: $mysql_error ($fullSql)"; - c_echo("%R$error_msg%n\n"); + c_echo("%R$error_msg%n\n", isCli() || $debug); logfile(date($config['dateformat']['compact']) . ' ' . $error_msg); } }