fixed syslog? why knows!

git-svn-id: http://www.observium.org/svn/observer/trunk@2405 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-09-02 06:56:21 +00:00
parent 70e3f1d0f3
commit 232b330f3d
3 changed files with 76 additions and 6 deletions
+6 -1
View File
@@ -30,6 +30,8 @@ function dbQuery($sql, $parameters = array()) {
$time_start = microtime(true);
*/
# echo($fullSql);
$result = mysql_query($fullSql); // sets $this->result
/*
if($this->logFile) {
@@ -79,6 +81,9 @@ function dbInsert($data, $table) {
dbRollbackTransaction();
#$id = false;
}
logfile($fullSql);
$time_end = microtime(true);
$db_stats['insert_sec'] += number_format($time_end - $time_start, 8);
$db_stats['insert']++;
@@ -122,7 +127,7 @@ function dbUpdate($data, $table, $where = null, $parameters = array()) {
if(dbQuery($sql, $data)) {
$return = mysql_affected_rows();
} else {
echo("$fullSql");
#echo("$fullSql");
trigger_error('QDB - Update failed.', E_USER_WARNING);
$return = false;
}