]> git.mxchange.org Git - friendica.git/commitdiff
Disabled logging of SQL statements
authorMichael Vogel <icarus@dabo.de>
Tue, 29 May 2012 14:16:37 +0000 (16:16 +0200)
committerMichael Vogel <icarus@dabo.de>
Tue, 29 May 2012 14:16:37 +0000 (16:16 +0200)
include/dba.php

index 20c08c2dd0d2e0d39bbc49628f4dc7182214bdff..881097f30c399598e3d6fc4f95739c8ec9b4c2bf 100644 (file)
@@ -77,16 +77,16 @@ class dba {
 
                $this->error = '';
 
-               if (get_config("system", "db_log") != "")
-                       @file_put_contents(get_config("system", "db_log"), datetime_convert().':'.session_id(). ' Start '.$sql."\n", FILE_APPEND);
+               //if (get_config("system", "db_log") != "")
+               //      @file_put_contents(get_config("system", "db_log"), datetime_convert().':'.session_id(). ' Start '.$sql."\n", FILE_APPEND);
 
                if($this->mysqli)
                        $result = @$this->db->query($sql);
                else
                        $result = @mysql_query($sql,$this->db);
 
-               if (get_config("system", "db_log") != "")
-                       @file_put_contents(get_config("system", "db_log"), datetime_convert().':'.session_id(). ' Stop '."\n", FILE_APPEND);
+               //if (get_config("system", "db_log") != "")
+               //      @file_put_contents(get_config("system", "db_log"), datetime_convert().':'.session_id(). ' Stop '."\n", FILE_APPEND);
 
                if($this->mysqli) {
                        if($this->db->errno)