Added debug level parameter.

This commit is contained in:
ThePendulum 2021-11-09 13:15:12 +01:00
parent b8898d3fa3
commit d9f1181fcb
1 changed files with 2 additions and 1 deletions

View File

@ -6,10 +6,11 @@ const bhttp = require('bhttp');
const WebSocket = require('ws');
const fs = require('fs').promises;
const logger = require('simple-node-logger').createSimpleLogger();
const { argv } = require('yargs');
const points = {};
logger.setLevel('debug');
logger.setLevel(argv.level || 'info');
async function auth() {
const httpSession = bhttp.session();