From 6b5e2adbb5185ec1a1a6e6d7eef7f86095fa395f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Wed, 3 Nov 2021 08:55:10 +0100 Subject: [PATCH] add support for --log-stdout flag that controls format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- defaults/main.yml | 3 ++- tasks/service.yml | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index d06e90b..249c4b3 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -21,7 +21,8 @@ beacon_node_build_days_kept: 3 # shared testnet name: mainnet, pyrmont, prater, etc. beacon_node_network: 'mainnet' -beacon_node_log_level: 'INFO' +beacon_node_log_level: 'INFO' # TRACE DEBUG INFO NOTICE WARN ERROR FATAL NONE +beacon_node_log_format: 'json' # auto colors nocolors json none beacon_node_data_folder: 'shared_{{ beacon_node_network }}_0' beacon_node_subscribe_all: false beacon_node_doppelganger_detection: true diff --git a/tasks/service.yml b/tasks/service.yml index bf335d6..457464c 100644 --- a/tasks/service.yml +++ b/tasks/service.yml @@ -26,8 +26,11 @@ {% if beacon_node_secrets_dir != "" %} --secrets-dir="{{ beacon_node_secrets_dir }}" {% endif %} - --nat=extip:{{ beacon_node_public_address }} + {% if beacon_node_repo_branch == "unstable" %} + --log-stdout={{ beacon_node_log_format }} + {% endif %} --log-level={{ beacon_node_log_level }} + --nat=extip:{{ beacon_node_public_address }} --tcp-port={{ beacon_node_listening_port }} --udp-port={{ beacon_node_discovery_port }} --max-peers={{ beacon_node_max_peers }}