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,