add support for --log-stdout flag that controls format

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-11-03 08:55:10 +01:00
parent d0051bb4cd
commit 6b5e2adbb5
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 6 additions and 2 deletions

View File

@ -21,7 +21,8 @@ beacon_node_build_days_kept: 3
# shared testnet name: mainnet, pyrmont, prater, etc. # shared testnet name: mainnet, pyrmont, prater, etc.
beacon_node_network: 'mainnet' 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_data_folder: 'shared_{{ beacon_node_network }}_0'
beacon_node_subscribe_all: false beacon_node_subscribe_all: false
beacon_node_doppelganger_detection: true beacon_node_doppelganger_detection: true

View File

@ -26,8 +26,11 @@
{% if beacon_node_secrets_dir != "" %} {% if beacon_node_secrets_dir != "" %}
--secrets-dir="{{ beacon_node_secrets_dir }}" --secrets-dir="{{ beacon_node_secrets_dir }}"
{% endif %} {% 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 }} --log-level={{ beacon_node_log_level }}
--nat=extip:{{ beacon_node_public_address }}
--tcp-port={{ beacon_node_listening_port }} --tcp-port={{ beacon_node_listening_port }}
--udp-port={{ beacon_node_discovery_port }} --udp-port={{ beacon_node_discovery_port }}
--max-peers={{ beacon_node_max_peers }} --max-peers={{ beacon_node_max_peers }}