From 53fb5924eab25671c5ea7929323a2355f91701ef Mon Sep 17 00:00:00 2001 From: cheatfate Date: Sun, 25 Aug 2019 13:53:41 +0300 Subject: [PATCH] Fix daemonapi flags in startProcess. --- libp2p/daemon/daemonapi.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libp2p/daemon/daemonapi.nim b/libp2p/daemon/daemonapi.nim index c15ee8bbd..88917475e 100644 --- a/libp2p/daemon/daemonapi.nim +++ b/libp2p/daemon/daemonapi.nim @@ -727,11 +727,11 @@ proc newDaemonApi*(flags: set[P2PDaemonFlags] = {}, # Starting daemon process # echo "Starting ", cmd, " ", args.join(" ") - api.process = startProcess(cmd, "", args, env, {}) + api.process = startProcess(cmd, "", args, env, {poStdErrToStdOut}) # Waiting until daemon will not be bound to control socket. while true: if not api.process.running(): - echo api.process.errorStream.readAll() + echo api.process.outputStream.readAll() raise newException(DaemonLocalError, "Daemon executable could not be started!") let res = await socketExists(api.address)