diff options
author | redmatrix <git@macgirvin.com> | 2016-05-09 01:12:24 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-05-09 01:12:24 -0700 |
commit | 6f486a3393fe33db70ef2f1684dd3b79768d1137 (patch) | |
tree | 4d6967687dcc9b1c9bbbdb443b0038146c31335a /include/dba/dba_postgres.php | |
parent | 94accd8a4c7500ee4f5c268fe7e84ad3ed9a6675 (diff) | |
download | volse-hubzilla-6f486a3393fe33db70ef2f1684dd3b79768d1137.tar.gz volse-hubzilla-6f486a3393fe33db70ef2f1684dd3b79768d1137.tar.bz2 volse-hubzilla-6f486a3393fe33db70ef2f1684dd3b79768d1137.zip |
prevent recursion in the database driver when debugging is enabled and the system config is not yet loaded - caused by calling get_config and making db calls within the logger function; which we then attempt to log...
Diffstat (limited to 'include/dba/dba_postgres.php')
-rw-r--r-- | include/dba/dba_postgres.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/dba/dba_postgres.php b/include/dba/dba_postgres.php index ba4366d13..03b29d703 100644 --- a/include/dba/dba_postgres.php +++ b/include/dba/dba_postgres.php @@ -50,7 +50,7 @@ class dba_postgres extends dba_driver { $this->error = pg_last_error($this->db); if($result === false || $this->error) { - //logger('dba_postgres: ' . printable($sql) . ' returned false.' . "\n" . $this->error); + //db_logger('dba_postgres: ' . printable($sql) . ' returned false.' . "\n" . $this->error); if(file_exists('dbfail.out')) file_put_contents('dbfail.out', datetime_convert() . "\n" . printable($sql) . ' returned false' . "\n" . $this->error . "\n", FILE_APPEND); } @@ -67,7 +67,7 @@ class dba_postgres extends dba_driver { $r[] = $x; pg_free_result($result); if($this->debug) - logger('dba_postgres: ' . printable(print_r($r,true))); + db_logger('dba_postgres: ' . printable(print_r($r,true))); } return $r; } |