added logger
This commit is contained in:
@@ -33,6 +33,7 @@ const socket = io.connect("http://10.10.10.32:5005");
|
|||||||
|
|
||||||
// respond with "hello world" when a GET request is made to the homepage
|
// respond with "hello world" when a GET request is made to the homepage
|
||||||
app.get('/broadcast/general', (req, res) => {
|
app.get('/broadcast/general', (req, res) => {
|
||||||
|
logger.info('***** Server PROVISION GENERAL MESSAGE ********* ');
|
||||||
const room = 'merms_global_events';
|
const room = 'merms_global_events';
|
||||||
const message_action = 'refresh_all_actions';
|
const message_action = 'refresh_all_actions';
|
||||||
socket.emit("join_room", room);
|
socket.emit("join_room", room);
|
||||||
@@ -41,6 +42,7 @@ app.get('/broadcast/general', (req, res) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
app.get('/broadcast/selected', (req, res) => {
|
app.get('/broadcast/selected', (req, res) => {
|
||||||
|
logger.info('***** Server PROVISION SELECTED MESSAGE ********* ');
|
||||||
const room = 'merms_selected_events';
|
const room = 'merms_selected_events';
|
||||||
const message_action = 'refresh_selected_actions';
|
const message_action = 'refresh_selected_actions';
|
||||||
socket.emit("join_room", room);
|
socket.emit("join_room", room);
|
||||||
@@ -49,7 +51,7 @@ app.get('/broadcast/selected', (req, res) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
app.get('/broadcast/provisioning', (req, res) => {
|
app.get('/broadcast/provisioning', (req, res) => {
|
||||||
logger.info('***** Server PROVSION STEPS MESSAGE ********* ');
|
logger.info('***** Server PROVISION STEPS MESSAGE ********* ');
|
||||||
logger.info( req.query.product_uid );
|
logger.info( req.query.product_uid );
|
||||||
const room = req.query.product_uid;
|
const room = req.query.product_uid;
|
||||||
//const room = 'merms_provision_events';
|
//const room = 'merms_provision_events';
|
||||||
|
|||||||
Reference in New Issue
Block a user