mirror of
https://github.com/tribufu/node-gamedig
synced 2026-06-01 09:42:41 +00:00
Replace use of deprecated internal debugLog with logger.debug
This commit is contained in:
parent
ca69e76ed3
commit
bff9507189
12 changed files with 64 additions and 69 deletions
|
|
@ -111,7 +111,7 @@ export default class battlefield extends Core {
|
|||
return await this.tcpSend(socket, outPacket, (data) => {
|
||||
const decoded = this.decodePacket(data);
|
||||
if(decoded) {
|
||||
this.debugLog(decoded);
|
||||
this.logger.debug(decoded);
|
||||
if(decoded.shift() !== 'OK') throw new Error('Missing OK');
|
||||
return decoded;
|
||||
}
|
||||
|
|
@ -148,7 +148,7 @@ export default class battlefield extends Core {
|
|||
const header = reader.uint(4);
|
||||
const totalLength = reader.uint(4);
|
||||
if(buffer.length < totalLength) return false;
|
||||
this.debugLog("Expected " + totalLength + " bytes, have " + buffer.length);
|
||||
this.logger.debug("Expected " + totalLength + " bytes, have " + buffer.length);
|
||||
|
||||
const paramCount = reader.uint(4);
|
||||
const params = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue