From fd2e979f0603dc0860882721869e7b6e6d3f35a4 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sun, 7 Oct 2018 15:06:58 -0400 Subject: [PATCH] remove unneded console logs --- lib/core/plugin.js | 1 - lib/modules/webserver/server.js | 2 -- 2 files changed, 3 deletions(-) diff --git a/lib/core/plugin.js b/lib/core/plugin.js index 17ed9289..9ded42b4 100644 --- a/lib/core/plugin.js +++ b/lib/core/plugin.js @@ -226,7 +226,6 @@ Plugin.prototype.registerActionForEvent = function(eventName, cb) { }; Plugin.prototype.registerAPICall = function(method, endpoint, cb) { - console.dir("registerAPICall " + method + " " + endpoint); this.apiCalls.push({method, endpoint, cb}); this.addPluginType('apiCalls'); this.events.emit('plugins:register:api', {method, endpoint, cb}); diff --git a/lib/modules/webserver/server.js b/lib/modules/webserver/server.js index 1be158f4..2ec69af0 100644 --- a/lib/modules/webserver/server.js +++ b/lib/modules/webserver/server.js @@ -93,7 +93,6 @@ class Server { }); for (let apiCall of apiCalls) { - console.dir("adding " + apiCall.method + " " + apiCall.endpoint); this.app[apiCall.method].apply(this.app, [apiCall.endpoint, this.applyAPIFunction.bind(this, apiCall.cb)]); } } @@ -112,7 +111,6 @@ class Server { }); this.events.on('plugins:register:api', (apiCall) => { - console.dir("adding " + apiCall.method + " " + apiCall.endpoint); self.app[apiCall.method].apply(self.app, [apiCall.endpoint, this.applyAPIFunction.bind(this, apiCall.cb)]); });