diff --git a/includes/functions.php b/includes/functions.php index d4b64758cd..8e68eb2e64 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -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); }