remove unneded console logs

This commit is contained in:
Iuri Matias 2018-10-07 15:06:58 -04:00 committed by Pascal Precht
parent 2c0644b5cb
commit fd2e979f06
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
2 changed files with 0 additions and 3 deletions

View File

@ -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});

View File

@ -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)]);
});