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
|
|
@ -34,13 +34,13 @@ export default class minecraftvanilla extends Core {
|
|||
const reader = this.reader(data);
|
||||
|
||||
const packetId = reader.varint();
|
||||
this.debugLog("Packet ID: "+packetId);
|
||||
this.logger.debug("Packet ID: "+packetId);
|
||||
|
||||
const strLen = reader.varint();
|
||||
this.debugLog("String Length: "+strLen);
|
||||
this.logger.debug("String Length: "+strLen);
|
||||
|
||||
const str = reader.rest().toString('utf8');
|
||||
this.debugLog(str);
|
||||
this.logger.debug(str);
|
||||
|
||||
const json = JSON.parse(str);
|
||||
delete json.favicon;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue