added logger

This commit is contained in:
CHIEFSOFT\ameye
2025-07-20 18:37:25 -04:00
parent 4ae8c5b4d7
commit 5f0ca9643f
+3 -1
View File
@@ -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
app.get('/broadcast/general', (req, res) => {
logger.info('***** Server PROVISION GENERAL MESSAGE ********* ');
const room = 'merms_global_events';
const message_action = 'refresh_all_actions';
socket.emit("join_room", room);
@@ -41,6 +42,7 @@ app.get('/broadcast/general', (req, res) => {
})
app.get('/broadcast/selected', (req, res) => {
logger.info('***** Server PROVISION SELECTED MESSAGE ********* ');
const room = 'merms_selected_events';
const message_action = 'refresh_selected_actions';
socket.emit("join_room", room);
@@ -49,7 +51,7 @@ app.get('/broadcast/selected', (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 );
const room = req.query.product_uid;
//const room = 'merms_provision_events';