Replace use of deprecated internal debugLog with logger.debug

This commit is contained in:
CosminPerRam 2023-09-18 10:48:24 +03:00
parent ca69e76ed3
commit bff9507189
12 changed files with 64 additions and 69 deletions

View file

@ -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;
}