removing console logs
This commit is contained in:
parent
a5b82ebb9e
commit
4761734d5f
@ -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,
|
||||
|
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user