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
|
|
@ -91,13 +91,13 @@ export default class openttd extends Core {
|
|||
|
||||
const packetLen = reader.uint(2);
|
||||
if(packetLen !== buffer.length) {
|
||||
this.debugLog('Invalid reported packet length: '+packetLen+' '+buffer.length);
|
||||
this.logger.debug('Invalid reported packet length: '+packetLen+' '+buffer.length);
|
||||
return;
|
||||
}
|
||||
|
||||
const packetType = reader.uint(1);
|
||||
if(packetType !== expected) {
|
||||
this.debugLog('Unexpected response packet type: '+packetType);
|
||||
this.logger.debug('Unexpected response packet type: '+packetType);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue