remove debug lines

This commit is contained in:
Guillaume COEUGNET
2016-03-30 10:23:46 +02:00
parent 758453938e
commit 290bb96502

View File

@@ -40,7 +40,6 @@ $msg_body = array(
"state" => $state,
"state_type" => 1,
"output" => $obj['msg'],
"long_output" => $obj['msg'],
"display_name" =>"librenms_test"
);
$msg_raw = json_encode($msg_body);
@@ -51,9 +50,6 @@ if ($msg_body['source_type'] == "resource")
else
$msg_rk = $msg_body['connector'].".".$msg_body['connector_name'].".".$msg_body['event_type'].".".$msg_body['source_type'].".".$msg_body['component'];
#echo "JSON Event: " . $msg_raw . "\n";
#echo "Routing-key: " . $msg_rk . "\n";
// Publish Event
$msg = new AMQPMessage($msg_raw, array('content_type' => 'application/json', 'delivery_mode' => 2));
$ch->basic_publish($msg, $exchange, $msg_rk);