Log user number when data received via websocket.
This commit is contained in:
		
							parent
							
								
									c2955da1eb
								
							
						
					
					
						commit
						3fa6593fc9
					
				@ -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){
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user