mirror of
https://github.com/darverdevs/BetterMultiPort.git
synced 2024-12-21 22:54:11 -08:00
Simple Logger (Add more later ofc)
This commit is contained in:
parent
37b4c6665c
commit
10f2d253cb
|
@ -129,6 +129,7 @@ server.listen(listenPort, function() {
|
||||||
|
|
||||||
server.on('connection', function(socket) {
|
server.on('connection', function(socket) {
|
||||||
let client = null;
|
let client = null;
|
||||||
|
console.log("Connection Made")
|
||||||
|
|
||||||
let determinedClient = false;
|
let determinedClient = false;
|
||||||
|
|
||||||
|
@ -192,7 +193,7 @@ function makeClient(host,port,socket,cb){
|
||||||
});
|
});
|
||||||
|
|
||||||
client.on('error', function(err) {
|
client.on('error', function(err) {
|
||||||
//console.log(`Client Error: ${err}`);
|
console.log(`Client Error: ${err}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -211,6 +212,6 @@ function makeWsMcClient(ws,cb){
|
||||||
});
|
});
|
||||||
|
|
||||||
client.on('error', function(err) {
|
client.on('error', function(err) {
|
||||||
//console.log(`Client Error: ${err}`);
|
console.log(`Client Error: ${err}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user