Log user number when data received via websocket.

This commit is contained in:
jkaplon 2018-02-12 18:46:37 -05:00
parent c2955da1eb
commit 3fa6593fc9

View File

@ -129,7 +129,7 @@ io.on('connection', function(socket){
} else { winston.error(err); } } else { winston.error(err); }
}); });
socket.on('upload allNotes', function(msg){ socket.on('upload allNotes', function(msg){
winston.info('WS data received'); winston.info('WS data received from user # '+ userNum);
var now = Date.now(); var now = Date.now();
// Overwrite allNotes.txt with new contents from client. // Overwrite allNotes.txt with new contents from client.
fileSystem.readFile(notePath, 'utf-8', function(err, data){ fileSystem.readFile(notePath, 'utf-8', function(err, data){