aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba/dba_driver.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-06-23 10:14:13 +0200
committerMario Vavti <mario@mariovavti.com>2016-06-23 10:14:13 +0200
commit39b14b6b811ec65f8c8a812397f9ee04877cd53d (patch)
tree1f122a63a4f44aed278a54fab803706d77946997 /include/dba/dba_driver.php
parent5536df51f58a65f5a42051b0466b1c13c9a9718a (diff)
parentac81a3a5effe51b82310bbd831dec06e7914e649 (diff)
downloadvolse-hubzilla-39b14b6b811ec65f8c8a812397f9ee04877cd53d.tar.gz
volse-hubzilla-39b14b6b811ec65f8c8a812397f9ee04877cd53d.tar.bz2
volse-hubzilla-39b14b6b811ec65f8c8a812397f9ee04877cd53d.zip
Merge branch 'dev' into sabre32
Diffstat (limited to 'include/dba/dba_driver.php')
-rwxr-xr-xinclude/dba/dba_driver.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/dba/dba_driver.php b/include/dba/dba_driver.php
index df072ed76..f6091f6e1 100755
--- a/include/dba/dba_driver.php
+++ b/include/dba/dba_driver.php
@@ -90,7 +90,7 @@ abstract class dba_driver {
protected $db;
protected $pdo = array();
- public $debug = 0;
+ public $debug = 0;
public $connected = false;
public $error = false;
@@ -332,6 +332,9 @@ function q($sql) {
else
db_logger('dba: vsprintf error: ' . print_r(debug_backtrace(), true),LOGGER_NORMAL,LOG_CRIT);
}
+ if(\DBA::$dba->debug)
+ db_logger('Sql: ' . $stmt, LOGGER_DEBUG, LOG_INFO);
+
return \DBA::$dba->q($stmt);
}