diff --git a/core/_install.php b/core/_install.php index 9e1a9adb..a49b8fad 100644 --- a/core/_install.php +++ b/core/_install.php @@ -123,7 +123,6 @@ function do_install() } define("CACHE_DSN", null); - define("DEBUG_SQL", false); define("DATABASE_KA", true); install_process(); } // }}} diff --git a/core/database.php b/core/database.php index a95348b9..7168b9a7 100644 --- a/core/database.php +++ b/core/database.php @@ -193,18 +193,6 @@ class Database global $_tracer; $dur = microtime(true) - $start; $_tracer->complete($start * 1000000, $dur * 1000000, "DB Query", ["query"=>$query, "args"=>$args]); - - if ((DEBUG_SQL === true) || (is_null(DEBUG_SQL) && @$_GET['DEBUG_SQL'])) { - $query = trim(preg_replace('/\s+/msi', ' ', $query)); - if (isset($args) && is_array($args) && !empty($args)) { - $text = $query." -- ".join(", ", $args)."\n"; - } else { - $text = $query."\n"; - } - $text .= "$method:$dur\n"; - file_put_contents("data/sql.log", $text, FILE_APPEND); - } - $this->query_count++; $this->dbtime += $dur; } diff --git a/core/sys_config.php b/core/sys_config.php index 32da08fb..06e9e900 100644 --- a/core/sys_config.php +++ b/core/sys_config.php @@ -30,7 +30,6 @@ _d("DATABASE_KA", true); // string Keep database connection alive _d("DATABASE_TIMEOUT", 10000);// int Time to wait for each statement to complete _d("CACHE_DSN", null); // string cache connection details _d("DEBUG", false); // boolean print various debugging details -_d("DEBUG_SQL", false); // boolean dump SQL queries to data/sql.log _d("DEBUG_CACHE", false); // boolean dump cache queries to data/cache.log _d("COVERAGE", false); // boolean activate xdebug coverage monitor _d("CACHE_HTTP", false); // boolean output explicit HTTP caching headers