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
|
|
@ -23,7 +23,7 @@ export default class tribes1master extends Core {
|
|||
const reader = this.reader(buffer);
|
||||
const header = reader.uint(2);
|
||||
if (header !== 0x0610) {
|
||||
this.debugLog('Header response does not match: ' + header.toString(16));
|
||||
this.logger.debug('Header response does not match: ' + header.toString(16));
|
||||
return;
|
||||
}
|
||||
const num = reader.uint(1);
|
||||
|
|
@ -34,11 +34,11 @@ export default class tribes1master extends Core {
|
|||
total = t;
|
||||
|
||||
if (num < 1 || num > total) {
|
||||
this.debugLog('Invalid packet number: ' + num + ' ' + total);
|
||||
this.logger.debug('Invalid packet number: ' + num + ' ' + total);
|
||||
return;
|
||||
}
|
||||
if (parts.has(num)) {
|
||||
this.debugLog('Duplicate part: ' + num);
|
||||
this.logger.debug('Duplicate part: ' + num);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue