hide debug output from log_event()

git-svn-id: http://www.observium.org/svn/observer/trunk@920 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-02-21 14:56:20 +00:00
parent 9fb7b30ed8
commit bfba015815

View File

@@ -820,7 +820,7 @@ function eventlog($eventtext,$device_id = "", $interface_id = "")
function log_event($text, $device = NULL, $type = NULL, $reference = NULL) {
$event_query = "INSERT INTO eventlog (host, reference, type, datetime, message) VALUES (" . ($device['device_id'] ? $device['device_id'] : "NULL");
$event_query .= ", " . ($reference ? $reference : "NULL") . ", " . ($type ? $type : "NULL") . ", NOW(), '" . mres($text) . "')";
echo($event_query . "\n");
if ($debug) { echo($event_query . "\n"); }
mysql_query($event_query);
}