From 04a02af524ec825ac72f15dfc81eb9104cf9ad6e Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Tue, 26 Nov 2019 11:18:01 -0500 Subject: [PATCH] fix(@embark/whisper): fix whisper node printing twice because of duplicated name --- packages/plugins/whisper-geth/src/blockchain.js | 2 +- packages/plugins/whisper-geth/src/blockchainProcessLauncher.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugins/whisper-geth/src/blockchain.js b/packages/plugins/whisper-geth/src/blockchain.js index 557a74ce9..1e352cf5f 100644 --- a/packages/plugins/whisper-geth/src/blockchain.js +++ b/packages/plugins/whisper-geth/src/blockchain.js @@ -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) => { diff --git a/packages/plugins/whisper-geth/src/blockchainProcessLauncher.js b/packages/plugins/whisper-geth/src/blockchainProcessLauncher.js index f4d7883a3..2f6b82a5b 100644 --- a/packages/plugins/whisper-geth/src/blockchainProcessLauncher.js +++ b/packages/plugins/whisper-geth/src/blockchainProcessLauncher.js @@ -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,