Add username to client.log

This commit is contained in:
Bryan Ashby 2016-01-01 21:17:13 -07:00
parent 1212eb41eb
commit b3e1490d63
2 changed files with 6 additions and 4 deletions

View file

@ -18,6 +18,7 @@ function addNewClient(client, clientSock) {
var id = client.session.id = clientConnections.push(client) - 1;
// Create a client specific logger
// Note that this will be updated @ login with additional information
client.log = logger.log.child( { clientId : id } );
var connInfo = {