diff --git a/app/lib/wot.js b/app/lib/wot.js index 5543c780f44f1a1ae6fde470c8c66b54523652cf..1d06d936891201361f4662aad0b782a52ef7a217 100644 --- a/app/lib/wot.js +++ b/app/lib/wot.js @@ -20,6 +20,7 @@ function WoTBWrapper(instance) { this.resetWoT = instance.resetWoT; this.clear = instance.clear; this.showWoT = instance.showWoT; + this.dumpWoT = instance.dumpWoT; this.showGraph = () => instance.showGraph(); this.getWoTSize = instance.getWoTSize; @@ -30,8 +31,14 @@ function WoTBWrapper(instance) { this.getPaths = instance.getPaths; this.getSentries = instance.getSentries; this.getNonSentries = instance.getNonSentries; + this.getDisabled = instance.getDisabled; - this.setEnabled = (enabled, nodeID) => instance.setEnabled(enabled, nodeID); + this.setEnabled = (enabled, nodeID) => { + if (!enabled) { + logger.trace('Disable node %s', nodeID); + } + instance.setEnabled(enabled, nodeID) + }; this.addNode = () => { let nodeNumber = instance.addNode(); diff --git a/package.json b/package.json index 9fd0553884f71c4038bbdda952a60afb530b76c9..1420ad62f4c679a284e4e929be0cb10e0d422c39 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "unzip": "0.1.11", "unzip2": "0.2.5", "winston": "2.2.0", - "wotb": "0.5.1" + "wotb": "0.5.3" }, "devDependencies": { "coveralls": "2.11.4",