mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 15:17:36 +00:00
Minor debug logging improvements
This commit is contained in:
parent
9a536b160e
commit
2a87360a0e
4 changed files with 24 additions and 16 deletions
|
|
@ -20,6 +20,7 @@ class Core extends EventEmitter {
|
|||
|
||||
// Sent to us by QueryRunner
|
||||
this.options = null;
|
||||
/** @type GlobalUdpSocket */
|
||||
this.udpSocket = null;
|
||||
this.shortestRTT = 0;
|
||||
this.usedTcp = false;
|
||||
|
|
@ -190,7 +191,7 @@ class Core extends EventEmitter {
|
|||
log(HexUtil.debugDump(args[0]));
|
||||
writeHook.apply(socket,args);
|
||||
};
|
||||
socket.on('error', e => log('TCP Error: ' + e));
|
||||
socket.on('error', e => log('TCP Error:', e));
|
||||
socket.on('close', () => log('TCP Closed'));
|
||||
socket.on('data', (data) => {
|
||||
log(address+':'+port+" <--TCP");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue