From fe862f5dc5baa33eec0f285787e4c22265c92e18 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Mon, 14 May 2018 15:31:22 +0200 Subject: [PATCH] verbose moved --- MqttMongoNodejs.conf | 4 ++-- src/main.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MqttMongoNodejs.conf b/MqttMongoNodejs.conf index cd5b791..c8cc664 100644 --- a/MqttMongoNodejs.conf +++ b/MqttMongoNodejs.conf @@ -4,14 +4,14 @@ "brokerPass": "", "brokerCa": "", "mongodbUrl": "mongodb://localhost/smarthome", - "verbose": true, "instances": [ { "instanceId": "testInstance", "collection": "testcollection", "topics": [ "topic1", "topic2", "topic3" ], "encapsulate": true, - "parsePayload": true + "parsePayload": true, + "verbose": true } ] } diff --git a/src/main.ts b/src/main.ts index 816c3bc..a2cb574 100644 --- a/src/main.ts +++ b/src/main.ts @@ -13,7 +13,7 @@ config.dict.instances.forEach((v: any) => { brokerPass: config.dict.brokerPass, brokerCa: config.dict.brokerCa, mongodbUrl: config.dict.mongodbUrl, - verbose: config.dict.verbose, + verbose: v.verbose, instanceId: v.instanceId, collection: v.collection, topics: v.topics,