remove unneded console logs
This commit is contained in:
parent
2c0644b5cb
commit
fd2e979f06
|
@ -226,7 +226,6 @@ Plugin.prototype.registerActionForEvent = function(eventName, cb) {
|
||||||
};
|
};
|
||||||
|
|
||||||
Plugin.prototype.registerAPICall = function(method, endpoint, cb) {
|
Plugin.prototype.registerAPICall = function(method, endpoint, cb) {
|
||||||
console.dir("registerAPICall " + method + " " + endpoint);
|
|
||||||
this.apiCalls.push({method, endpoint, cb});
|
this.apiCalls.push({method, endpoint, cb});
|
||||||
this.addPluginType('apiCalls');
|
this.addPluginType('apiCalls');
|
||||||
this.events.emit('plugins:register:api', {method, endpoint, cb});
|
this.events.emit('plugins:register:api', {method, endpoint, cb});
|
||||||
|
|
|
@ -93,7 +93,6 @@ class Server {
|
||||||
});
|
});
|
||||||
|
|
||||||
for (let apiCall of apiCalls) {
|
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)]);
|
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) => {
|
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)]);
|
self.app[apiCall.method].apply(self.app, [apiCall.endpoint, this.applyAPIFunction.bind(this, apiCall.cb)]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue