From bfba01581573a63efca17d7bbba8793bfbab95ba Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Sun, 21 Feb 2010 14:56:20 +0000 Subject: [PATCH] hide debug output from log_event() git-svn-id: http://www.observium.org/svn/observer/trunk@920 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }