mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
Launching ipc connection depending on role
This commit is contained in:
parent
09c11662aa
commit
f467fc5a31
@ -41,7 +41,7 @@ class ConsoleListener {
|
||||
}
|
||||
|
||||
listenForLogRequests(){
|
||||
try {
|
||||
if(this.ipc.ipcRole === 'server'){
|
||||
this.ipc.on('log', (request) => {
|
||||
if(request.type == 'contract-log'){
|
||||
|
||||
@ -72,8 +72,6 @@ class ConsoleListener {
|
||||
this.logger.debug(request);
|
||||
}
|
||||
});
|
||||
} catch(e) {
|
||||
//
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user