never mind. dbg(1) now gives you the basic debug result and dbg(2) gives you the verbose debug option with all the results.

This commit is contained in:
zotlabs 2018-04-14 16:56:30 -07:00
parent fdf5799857
commit 518db97962

View File

@ -100,7 +100,7 @@ class dba_pdo extends dba_driver {
if($this->debug) { if($this->debug) {
db_logger('dba_pdo: DEBUG: ' . printable($sql) . ' returned ' . count($r) . ' results.', LOGGER_NORMAL, LOG_INFO); db_logger('dba_pdo: DEBUG: ' . printable($sql) . ' returned ' . count($r) . ' results.', LOGGER_NORMAL, LOG_INFO);
if(intval($this->debug) === 1) { if(intval($this->debug) > 1) {
db_logger('dba_pdo: ' . printable(print_r($r,true)), LOGGER_NORMAL, LOG_INFO); db_logger('dba_pdo: ' . printable(print_r($r,true)), LOGGER_NORMAL, LOG_INFO);
} }
} }