[geeklog-cvs] geeklog: Log only when isVerbose()

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Tue Jan 26 15:54:22 EST 2010


changeset 7661:79f3c3414ea7
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/79f3c3414ea7
user: Dirk Haun <dirk at haun-online.de>
date: Sat Jan 16 15:52:05 2010 +0100
description:
Log only when isVerbose()

diffstat:

 system/databases/pgsql.class.php |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r 3f3700aee0c2 -r 79f3c3414ea7 system/databases/pgsql.class.php
--- a/system/databases/pgsql.class.php	Sat Jan 16 12:44:07 2010 +0100
+++ b/system/databases/pgsql.class.php	Sat Jan 16 15:52:05 2010 +0100
@@ -336,10 +336,10 @@
     */
     function dbQuery($sql,$ignore_errors=0)
     {
-        //if ($this->isVerbose()) {
+        if ($this->isVerbose()) {
             $this->_errorlog("\n***inside database->dbQuery***");
             $this->_errorlog("\n*** sql to execute is $sql ***");
-        //}
+        }
         /* Replace some non ANSI keywords */
         if(preg_match('#LIMIT ([0-9]+),([\\s])?([0-9]+)#',$sql,$matches))
         {



More information about the geeklog-cvs mailing list