aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba/dba_driver.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-03-07 20:43:52 -0800
committerredmatrix <git@macgirvin.com>2016-03-07 20:43:52 -0800
commit9debfa348aada8ad32a16cbba4f96cc8f4b0ac37 (patch)
tree6a92df1cbf3d5e92ed197c7eaa31e5680ae1b3a4 /include/dba/dba_driver.php
parent32e903e9560b3a6d1b133524493c3d72f384164c (diff)
downloadvolse-hubzilla-9debfa348aada8ad32a16cbba4f96cc8f4b0ac37.tar.gz
volse-hubzilla-9debfa348aada8ad32a16cbba4f96cc8f4b0ac37.tar.bz2
volse-hubzilla-9debfa348aada8ad32a16cbba4f96cc8f4b0ac37.zip
add syslog loglevels to dba functions
Diffstat (limited to 'include/dba/dba_driver.php')
-rwxr-xr-xinclude/dba/dba_driver.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/dba/dba_driver.php b/include/dba/dba_driver.php
index 2219b43cb..3c5b0b67e 100755
--- a/include/dba/dba_driver.php
+++ b/include/dba/dba_driver.php
@@ -303,9 +303,9 @@ function q($sql) {
if($stmt === false) {
if(version_compare(PHP_VERSION, '5.4.0') >= 0)
logger('dba: vsprintf error: ' .
- print_r(debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 1), true));
+ print_r(debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 1), true),LOGGER_NORMAL,LOG_CRIT);
else
- logger('dba: vsprintf error: ' . print_r(debug_backtrace(), true));
+ logger('dba: vsprintf error: ' . print_r(debug_backtrace(), true),LOGGER_NORMAL,LOG_CRIT);
}
return $db->q($stmt);
}
@@ -314,7 +314,7 @@ function q($sql) {
* This will happen occasionally trying to store the
* session data after abnormal program termination
*/
- logger('dba: no database: ' . print_r($args,true));
+ logger('dba: no database: ' . print_r($args,true),LOGGER_NORMAL,LOG_CRIT);
return false;
}
@@ -385,7 +385,7 @@ function db_getfunc($f) {
if(isset($lookup[$f]) && isset($lookup[$f][ACTIVE_DBTYPE]))
return $lookup[$f][ACTIVE_DBTYPE];
- logger('Unable to abstract DB function "'. $f . '" for dbtype ' . ACTIVE_DBTYPE, LOGGER_DEBUG);
+ logger('Unable to abstract DB function "'. $f . '" for dbtype ' . ACTIVE_DBTYPE, LOGGER_DEBUG, LOG_ERR);
return $f;
}