more instrumentation

This commit is contained in:
Mike Macgirvin 2010-10-06 18:14:11 -07:00
parent c7c3db8c54
commit 66a6fd8df0
3 changed files with 10 additions and 2 deletions

View file

@ -57,6 +57,10 @@ class dba {
break;
}
}
else {
if(($result === false) && (file_exists('dbfail.out')))
file_put_contents('dbfail.out', printable($sql) . ' returned false' . "\n", FILE_APPEND);
}
if(($result === true) || ($result === false))
return $result;