mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 15:17:36 +00:00
Minor debug logging improvements
This commit is contained in:
parent
9a536b160e
commit
2a87360a0e
4 changed files with 24 additions and 16 deletions
|
|
@ -1,6 +1,7 @@
|
|||
const GameResolver = require('./GameResolver'),
|
||||
ProtocolResolver = require('./ProtocolResolver'),
|
||||
GlobalUdpSocket = require('./GlobalUdpSocket');
|
||||
GlobalUdpSocket = require('./GlobalUdpSocket'),
|
||||
Logger = require('./Logger');
|
||||
|
||||
const defaultOptions = {
|
||||
socketTimeout: 2000,
|
||||
|
|
@ -91,8 +92,10 @@ class QueryRunner {
|
|||
|
||||
async _attempt(options) {
|
||||
if (options.debug) {
|
||||
console.log("Running attempt with options:");
|
||||
console.log(options);
|
||||
const logger = new Logger();
|
||||
logger.debugEnabled = true;
|
||||
logger.debug("Running attempt with options:");
|
||||
logger.debug(options);
|
||||
}
|
||||
const core = this.protocolResolver.create(options.protocol);
|
||||
core.options = options;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue