fix(@embark/whisper): fix whisper node printing twice because of duplicated name

This commit is contained in:
Jonathan Rainville 2019-11-26 11:18:01 -05:00
parent cab1986ff5
commit 04a02af524
2 changed files with 2 additions and 2 deletions

View File

@ -207,7 +207,7 @@ Blockchain.prototype.run = function () {
// TOCHECK I don't understand why stderr and stdout are reverted.
// This happens with Geth and Parity, so it does not seems a client problem
self.child.stdout.on("data", (data) => {
self.logger.info(`${self.client.name} error: ${data}`);
self.logger.error(`${self.client.name} error: ${data}`);
});
self.child.stderr.on("data", async (data) => {

View File

@ -25,7 +25,7 @@ export class BlockchainProcessLauncher {
this.logger.info(__("Starting Whisper node in another process").cyan);
this.blockchainProcess = new ProcessLauncher({
name: "blockchain",
name: "blockchainWhisper",
modulePath: joinPath(__dirname, "./blockchainProcess.js"),
logger: this.logger,
events: this.events,