aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-26 22:09:13 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-26 22:09:13 -0700
commit2028e1695c82685102a7eef7f75094267446a887 (patch)
tree45101cd992941eaf90f3844b49e4cf90fbb8e599 /include/dba.php
parenteb5e6aae7273fef06a06f983fe78aaad737aa729 (diff)
downloadvolse-hubzilla-2028e1695c82685102a7eef7f75094267446a887.tar.gz
volse-hubzilla-2028e1695c82685102a7eef7f75094267446a887.tar.bz2
volse-hubzilla-2028e1695c82685102a7eef7f75094267446a887.zip
rework the logging interface
Diffstat (limited to 'include/dba.php')
-rw-r--r--include/dba.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/dba.php b/include/dba.php
index 0e790d4c1..133b596ef 100644
--- a/include/dba.php
+++ b/include/dba.php
@@ -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))