aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba/dba_driver.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-06-01 10:00:44 +0200
committerMario Vavti <mario@mariovavti.com>2016-06-01 10:00:44 +0200
commitb4eb9f2a1142cf121dd41ea0ad81475d38343308 (patch)
treefa32a8f59c863564998cd149a902388dd363d605 /include/dba/dba_driver.php
parent380f65d309a6ab01d8e804f704962d5baef9820a (diff)
parentc1039977f1d64611d2c793f3aded96d031b74183 (diff)
downloadvolse-hubzilla-b4eb9f2a1142cf121dd41ea0ad81475d38343308.tar.gz
volse-hubzilla-b4eb9f2a1142cf121dd41ea0ad81475d38343308.tar.bz2
volse-hubzilla-b4eb9f2a1142cf121dd41ea0ad81475d38343308.zip
Merge branch 'sabre32' of https://github.com/redmatrix/hubzilla into sabre32
Diffstat (limited to 'include/dba/dba_driver.php')
-rwxr-xr-xinclude/dba/dba_driver.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/dba/dba_driver.php b/include/dba/dba_driver.php
index 0ab5830ed..df072ed76 100755
--- a/include/dba/dba_driver.php
+++ b/include/dba/dba_driver.php
@@ -12,7 +12,7 @@ class DBA {
static public $dba = null;
static public $dbtype = null;
-
+ static public $logging = false;
/**
* @brief Returns the database driver object.
@@ -421,8 +421,13 @@ function db_getfunc($f) {
function db_logger($s,$level = LOGGER_NORMAL,$syslog = LOG_INFO) {
+ if(\DBA::$logging)
+ return;
+
$saved = \DBA::$dba->debug;
\DBA::$dba->debug = false;
+ \DBA::$logging = true;
logger($s,$level,$syslog);
+ \DBA::$logging = false;
\DBA::$dba->debug = $saved;
} \ No newline at end of file