mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user