diff options
author | zotlabs <mike@macgirvin.com> | 2016-10-27 15:21:40 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-10-27 15:21:40 -0700 |
commit | b5c72611b45eba71bdcf6e4afe391fa88fc8a964 (patch) | |
tree | 70ba70091849f4aa9678e64882790b57f44f7ba5 /include/dba | |
parent | 2b3b5d2c8a5587c81d2c6abf46df7e74cb7f7d02 (diff) | |
download | volse-hubzilla-b5c72611b45eba71bdcf6e4afe391fa88fc8a964.tar.gz volse-hubzilla-b5c72611b45eba71bdcf6e4afe391fa88fc8a964.tar.bz2 volse-hubzilla-b5c72611b45eba71bdcf6e4afe391fa88fc8a964.zip |
change log string on pdo log messages
Diffstat (limited to 'include/dba')
-rwxr-xr-x | include/dba/dba_pdo.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/dba/dba_pdo.php b/include/dba/dba_pdo.php index 526bf765c..cb244abad 100755 --- a/include/dba/dba_pdo.php +++ b/include/dba/dba_pdo.php @@ -60,7 +60,7 @@ class dba_pdo extends dba_driver { $this->error = $e->getMessage(); if($this->error) { - db_logger('dba_mysqli: ERROR: ' . printable($sql) . "\n" . $this->error, LOGGER_NORMAL, LOG_ERR); + db_logger('dba_pdo: ERROR: ' . printable($sql) . "\n" . $this->error, LOGGER_NORMAL, LOG_ERR); if(file_exists('dbfail.out')) { file_put_contents('dbfail.out', datetime_convert() . "\n" . printable($sql) . "\n" . $this->error . "\n", FILE_APPEND); } @@ -69,13 +69,13 @@ class dba_pdo extends dba_driver { if(!($select)) { if($this->debug) { - db_logger('dba_mysqli: DEBUG: ' . printable($sql) . ' returns ' . (($result) ? 'true' : 'false'), LOGGER_NORMAL,(($result) ? LOG_INFO : LOG_ERR)); + db_logger('dba_pdo: DEBUG: ' . printable($sql) . ' returns ' . (($result) ? 'true' : 'false'), LOGGER_NORMAL,(($result) ? LOG_INFO : LOG_ERR)); } return $result; } if($this->debug) { - db_logger('dba_mysqli: DEBUG: ' . printable($sql) . ' returned ' . count($result) . ' results.', LOGGER_NORMAL, LOG_INFO); + db_logger('dba_pdo: DEBUG: ' . printable($sql) . ' returned ' . count($result) . ' results.', LOGGER_NORMAL, LOG_INFO); } $r = array(); |