From d9f1181fcbddfd6a870cd8d4bb4d0fda4ec39700 Mon Sep 17 00:00:00 2001 From: Niels Simenon Date: Tue, 9 Nov 2021 13:15:12 +0100 Subject: [PATCH] Added debug level parameter. --- src/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app.js b/src/app.js index a25201c..5750bdd 100644 --- a/src/app.js +++ b/src/app.js @@ -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();