Added debug level parameter.
This commit is contained in:
parent
b8898d3fa3
commit
d9f1181fcb
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue