From 8202355df93920623ba3068119285b3c7f5c6c54 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Tue, 29 May 2012 16:16:37 +0200 Subject: [PATCH] Disabled logging of SQL statements --- include/dba.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/dba.php b/include/dba.php index 20c08c2dd0..881097f30c 100644 --- a/include/dba.php +++ b/include/dba.php @@ -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) -- 2.39.5