removing console logs

This commit is contained in:
martin 2020-11-15 20:21:02 +01:00
parent a5b82ebb9e
commit 4761734d5f
2 changed files with 3 additions and 7 deletions

View File

@ -522,7 +522,7 @@ export class nopeDispatcher implements INopeDispatcher {
if (this._logger?.isErrorEnabled()){
this._logger.error('Failed with task ' + data.taskId);
this._logger.error('Reason: ' + data.error.msg);
console.log(data.error.error);
console.error(data.error.error);
}
task.reject(data.error);
@ -1197,12 +1197,9 @@ export class nopeDispatcher implements INopeDispatcher {
pipe: options.pipe
});
console.log('SUBSCRIBING',event)
// Create an Observer by susbcribing to the external source (this is directly linked to the System)
const observer = observable.subscribe(
event => {
console.log('CB OF ELEMENT HIER:')
callback(event.data, event.sender, event.timestamp);
},
options.mode,
@ -1327,8 +1324,7 @@ export class nopeDispatcher implements INopeDispatcher {
if (options.mode == 'publish' || (Array.isArray(options.mode) && options.mode.includes('publish'))) {
const cb = (data, sender?, timestamp?, ...args) => {
// Only Publish data, if there exists a Subscription.
console.log(_pubTopic, _this.subscriptionExists(_pubTopic), _this.id !== sender);
if (true || _this.subscriptionExists(_pubTopic) && _this.id !== sender) {
if (_this.subscriptionExists(_pubTopic) && _this.id !== sender) {
// Use the Communicator to emit the Event.
_this._communicator.emitEvent(_pubTopic, {
data: data,

View File

@ -21,7 +21,7 @@ export const callImmediate = _runningInNode ? (callback: (...args) => void, ...a
try {
callback(...args);
} catch (error) {
console.log(error);
console.error(error);
}
});
} : (callback: (...args) => void, ...args) => {