mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
hm, fix to last commit, debug output would never fire
git-svn-id: http://www.observium.org/svn/observer/trunk@921 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -817,7 +817,10 @@ function eventlog($eventtext,$device_id = "", $interface_id = "")
|
||||
mysql_query($event_query);
|
||||
}
|
||||
|
||||
function log_event($text, $device = NULL, $type = NULL, $reference = NULL) {
|
||||
function log_event($text, $device = NULL, $type = NULL, $reference = NULL)
|
||||
{
|
||||
global $debug;
|
||||
|
||||
$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) . "')";
|
||||
if ($debug) { echo($event_query . "\n"); }
|
||||
|
||||
Reference in New Issue
Block a user