From e273a2483c92846c2085de3a1df948ad2f0cc3fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Fri, 26 Apr 2019 11:59:55 +0200 Subject: [PATCH] add a mapping for log level names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- defaults/main.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 3d4481c..ecc0619 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,8 +1,10 @@ --- # map of network IDs miner_network_ids: + mainnet: 1 frontier: 1 morden: 2 + testnet: 3 ropsten: 3 rinkeby: 4 @@ -23,11 +25,19 @@ geth_alias: 'geth' geth_sync_mode: 'light' # Peer discovery protocol geth_v5disc_enabled: true -# Log level: 0=silent, 1=error, 2=warn, 3=info, 4=debug, 5=detail -geth_log_level: 3 +# logging +geth_lov_level_names: + silent: 0 + error: 1 + warn: 2 + info: 3 + debug: 4 + detail: 5 +geth_log_level_name: 'info' +geth_log_level_id: '{{ geth_lov_level_names[geth_log_level_name | lower] | mandatory }}' # 1=Frontier, 2=Morden (disused), 3=Ropsten, 4=Rinkeby geth_network_name: 'ropsten' -geth_network_id: '{{ faucet_network_ids[faucet_network_name] | mandatory }}' +geth_network_id: '{{ faucet_network_ids[faucet_network_name | lower] | mandatory }}' # Maximum percentage of time allowed for serving LES requests (0-90) geth_light_serv: 90 # Maximum number of LES client peers (default: 100)