toggle for sql debugging

This commit is contained in:
Shish 2012-01-30 05:00:21 +00:00
parent 8623ab2917
commit 55447d1aa8
2 changed files with 2 additions and 1 deletions

View file

@ -409,7 +409,7 @@ function check_cli() {
*/
function _count_execs($db, $sql, $inputarray) {
global $_execs;
if(DEBUG) {
if(DEBUG_SQL) {
$fp = @fopen("data/sql.log", "a");
if($fp) {
if(is_array($inputarray)) {

View file

@ -61,6 +61,7 @@ function _d($name, $value) {if(!defined($name)) define($name, $value);}
_d("DATABASE_DSN", null); // string PDO database connection details
_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("COVERAGE", false); // boolean activate xdebug coverage monitor
_d("CONTEXT", null); // string file to log performance data into
_d("CACHE_MEMCACHE", false); // boolean store complete rendered pages in memcache