colourize sql/rrd debugging yellow/green

git-svn-id: http://www.observium.org/svn/observer/trunk@3224 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2012-05-22 13:41:04 +00:00
parent d3796004ae
commit 7cb9e665e9
2 changed files with 9 additions and 10 deletions

View File

@@ -24,7 +24,11 @@ Usage
function dbQuery($sql, $parameters = array()) {
global $fullSql, $debug;
$fullSql = dbMakeQuery($sql, $parameters);
if($debug) { echo("\nSQL[".$fullSql."] "); }
if($debug) {
print Console_Color::convert("\nSQL[%y".$fullSql."%n] ");
#echo("\nSQL[".$fullSql."] ");
}
/*
if($this->logFile)
$time_start = microtime(true);