mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
debug
This commit is contained in:
parent
054fabec6f
commit
bbffba7cea
1 changed files with 5 additions and 5 deletions
|
@ -85,7 +85,7 @@ class sqlDAL
|
|||
try {
|
||||
$audit->exec(@$debug[1]['function'], @$debug[1]['class'], $preparedStatement, $formats, json_encode($values), User::getId());
|
||||
} catch (Exception $exc) {
|
||||
_log_error($exc->getTraceAsString());
|
||||
log_error($exc->getTraceAsString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -99,18 +99,18 @@ class sqlDAL
|
|||
return false;
|
||||
}
|
||||
if (!sqlDAL::eval_mysql_bind($stmt, $formats, $values)) {
|
||||
_log_error("[sqlDAL::writeSql] eval_mysql_bind failed: values and params in stmt don't match ({$preparedStatement}) with formats ({$formats})");
|
||||
log_error("[sqlDAL::writeSql] eval_mysql_bind failed: values and params in stmt don't match ({$preparedStatement}) with formats ({$formats})");
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
$stmt->execute();
|
||||
} catch (Exception $exc) {
|
||||
_log_error($exc->getTraceAsString());
|
||||
_log_error('Error in writeSql stmt->execute: '.$preparedStatement);
|
||||
log_error($exc->getTraceAsString());
|
||||
log_error('Error in writeSql stmt->execute: '.$preparedStatement);
|
||||
}
|
||||
|
||||
if ($stmt->errno !== 0) {
|
||||
_log_error('Error in writeSql : (' . $stmt->errno . ') ' . $stmt->error . ", SQL-CMD:" . $preparedStatement);
|
||||
log_error('Error in writeSql : (' . $stmt->errno . ') ' . $stmt->error . ", SQL-CMD:" . $preparedStatement);
|
||||
$stmt->close();
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue