rework the logging interface

This commit is contained in:
Mike Macgirvin 2010-10-26 22:09:13 -07:00
commit 2028e1695c
7 changed files with 47 additions and 67 deletions

View file

@ -58,8 +58,11 @@ class dba {
}
}
else {
if(($result === false) && (file_exists('dbfail.out')))
file_put_contents('dbfail.out', printable($sql) . ' returned false' . "\n", FILE_APPEND);
if($result === false) {
logger('dba: ' . printable($sql) . ' returned false.');
if(file_exists('dbfail.out'))
file_put_contents('dbfail.out', printable($sql) . ' returned false' . "\n", FILE_APPEND);
}
}
if(($result === true) || ($result === false))