better debug on connection and logins

This commit is contained in:
AlexKvazos
2015-04-29 11:51:39 -05:00
parent 5046fd49ba
commit e58da2e71a
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -8,6 +8,7 @@ module.exports = function(socket) {
port: socket.connectionParams.port,
username: socket.connectionParams.username
});
console.log('logged in > ' + socket.connectionParams.hostname + ':' + socket.connectionParams.port + ' - ' + ' Username: ' + socket.mcbot.username);
});
};
+1 -1
View File
@@ -31,7 +31,7 @@ module.exports = function(socket) {
require('../../bot')(socket);
// debug
console.log('login > ' + data.hostname + ':' + data.port + ' - ' + ' Username: ' + data.username);
console.log('connecting > ' + data.hostname + ':' + data.port + ' - ' + ' Username: ' + data.username);
socket.emit('buffer:info', 'Connecting to server ' + data.hostname + ':' + data.port);
});