Launching ipc connection depending on role
This commit is contained in:
parent
9869a740b8
commit
7baad57995
|
@ -41,7 +41,7 @@ class ConsoleListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
listenForLogRequests(){
|
listenForLogRequests(){
|
||||||
try {
|
if(this.ipc.ipcRole === 'server'){
|
||||||
this.ipc.on('log', (request) => {
|
this.ipc.on('log', (request) => {
|
||||||
if(request.type == 'contract-log'){
|
if(request.type == 'contract-log'){
|
||||||
|
|
||||||
|
@ -72,8 +72,6 @@ class ConsoleListener {
|
||||||
this.logger.debug(request);
|
this.logger.debug(request);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch(e) {
|
|
||||||
//
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue