From f3252a8391d4da59c5bd5833c3eaa5a7664d1489 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Fri, 25 Oct 2019 20:03:55 +0300 Subject: [PATCH] Fix the error 'output device not set for a chonicles dynamic sink' --- beacon_chain/beacon_node.nim.cfg | 7 +++++++ nim.cfg | 8 +------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/beacon_chain/beacon_node.nim.cfg b/beacon_chain/beacon_node.nim.cfg index e81ba8fab..bdfb93d81 100644 --- a/beacon_chain/beacon_node.nim.cfg +++ b/beacon_chain/beacon_node.nim.cfg @@ -1,2 +1,9 @@ -d:"chronicles_runtime_filtering=on" +@if testnet_docker_node: + -d:"chronicles_sinks=json" + -d:"withoutPrompt" +@else: + -d:"chronicles_default_output_device=dynamic" +@end + diff --git a/nim.cfg b/nim.cfg index bf620c2a2..b10774b2f 100644 --- a/nim.cfg +++ b/nim.cfg @@ -11,18 +11,12 @@ --passL:"-Wl,--stack,8388608" # https://github.com/nim-lang/Nim/issues/4057 --tlsEmulation:off + # The dynamic Chronicles output currently prevents us from using colors on Windows # because these require direct manipulations of the stdout File object. -d:"chronicles_colors=off" @end -@if testnet_docker_node: - -d:"chronicles_sinks=json" - -d:"withoutPrompt" -@else: - -d:"chronicles_default_output_device=dynamic" -@end - --threads:on --opt:speed --excessiveStackTrace:on