From f3fc763895986e96d53349e0696c897303104765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Tue, 5 Nov 2019 21:16:56 +0100 Subject: [PATCH] daemonapi: direct p2pd's output to parent's streams --- libp2p/daemon/daemonapi.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libp2p/daemon/daemonapi.nim b/libp2p/daemon/daemonapi.nim index 77e9a6a87..d683cc95d 100644 --- a/libp2p/daemon/daemonapi.nim +++ b/libp2p/daemon/daemonapi.nim @@ -745,11 +745,10 @@ proc newDaemonApi*(flags: set[P2PDaemonFlags] = {}, # Starting daemon process # echo "Starting ", cmd, " ", args.join(" ") - api.process = startProcess(cmd, "", args, env, {poStdErrToStdOut}) + api.process = startProcess(cmd, "", args, env, {poParentStreams}) # Waiting until daemon will not be bound to control socket. while true: if not api.process.running(): - echo api.process.outputStream.readAll() raise newException(DaemonLocalError, "Daemon executable could not be started!") let res = await socketExists(api.address)