Update in class error/warning/etc calls instead of debug calls

For anything that is not debug use the proper reporting level
This commit is contained in:
Clemens Schwaighofer
2023-05-30 18:30:31 +09:00
parent b0a8783276
commit f72055909b
5 changed files with 21 additions and 10 deletions

View File

@@ -706,7 +706,17 @@ class IO
. \CoreLibs\Debug\Support::prAr($error_data)
. ']';
}
$this->log->debug($debug_id, $error_string, $prefix);
switch ($id) {
case 'DB_ERROR':
$this->log->error($debug_id . ' :' . $prefix . $error_string);
break;
case 'DB_WARNING':
$this->log->warning($debug_id . ' :' . $prefix . $error_string);
break;
default:
$this->log->debug($debug_id, $error_string, $prefix);
break;
}
}
/**
@@ -2735,7 +2745,7 @@ class IO
}
$result = $this->db_functions->__dbExecute($stm_name, $data);
if ($result === false) {
$this->log->debug('ExecuteData', 'ERROR in STM[' . $stm_name . '|'
$this->log->error('ExecuteData: ERROR in STM[' . $stm_name . '|'
. $this->prepare_cursor[$stm_name]['result'] . ']: '
. \CoreLibs\Debug\Support::prAr($data));
$this->__dbError(