aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba/dba_driver.php
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-06-25 06:30:15 -0500
committerAndrew Manning <tamanning@zoho.com>2016-06-25 06:30:15 -0500
commit83a42afddf6e5ffd04028431b36aed6ecadf5b9d (patch)
tree26d7251cd032fb627c80345cc9cbc4384a66f46f /include/dba/dba_driver.php
parent780f83a118146cf67509574ac88024c2cb03cf3a (diff)
parentec3651d216a5eafcb8019825bc6751e6ffa8c198 (diff)
downloadvolse-hubzilla-83a42afddf6e5ffd04028431b36aed6ecadf5b9d.tar.gz
volse-hubzilla-83a42afddf6e5ffd04028431b36aed6ecadf5b9d.tar.bz2
volse-hubzilla-83a42afddf6e5ffd04028431b36aed6ecadf5b9d.zip
Merge remote-tracking branch 'upstream/dev' into wiki
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);
}