mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	feature: improved readability for snmp debug output
It now matches RRD and SQL output format, the color is cyan Slightly better ip removal from debug output, only removes valid IPs now.
This commit is contained in:
		| @@ -32,7 +32,7 @@ function dbQuery($sql, $parameters = array()) | ||||
|             if (preg_match('/(INSERT INTO `alert_log`).*(details)/i', $fullSql)) { | ||||
|                 echo "\nINSERT INTO `alert_log` entry masked due to binary data\n"; | ||||
|             } else { | ||||
|                 c_echo("\nSQL[%y".$fullSql.'%n] '); | ||||
|                 c_echo('SQL[%y'.$fullSql."%n] \n"); | ||||
|             } | ||||
|         } else { | ||||
|             $sql_debug[] = $fullSql; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user