diff --git a/roles/node/defaults/main.yml b/roles/node/defaults/main.yml index 67a4440..4caf44c 100644 --- a/roles/node/defaults/main.yml +++ b/roles/node/defaults/main.yml @@ -130,8 +130,11 @@ node_telemetry_enable: true # If you set an empty value, it will use the default telemetry server node_telemetry_url: wss:/telemetry.polkadot.io/submit/ 1 node_log_trace_enable: false -node_log_trace_config: +node_log_trace_config: babe=trace,imonline=trace,slots=trace,sync=trace,consensus=trace,client=trace,forks=trace,txpool=debug,afg=trace,sub-authority-discovery=debug,sc_offchain=trace,runtime=trace,staking=trace,runtime::election-provider=trace +node_log_debug_enable: false +node_log_debug_config: + parachain=debug,babe=debug,imonline=debug,slots=debug,sync=debug,consensus=debug,client=debug,forks=debug,txpool=debug,afg=debug,sub-authority-discovery=debug,sc_offchain=debug,runtime=debug,staking=debug,runtime::election-provider=debug ##################################################################################### # Parachain @@ -219,9 +222,11 @@ node_parachain_telemetry_enable: true # If you set an empty value, it will use the default telemetry server node_parachain_telemetry_url: wss://telemetry.polkadot.io/submit/ 1 node_parachain_log_trace_enable: false -node_parachain_log_trace_config: +node_parachain_log_trace_config: babe=trace,imonline=trace,slots=trace,sync=trace,consensus=trace,client=trace,forks=trace,txpool=debug,afg=trace,sub-authority-discovery=debug,sc_offchain=trace,runtime=trace,staking=trace,runtime::election-provider=trace - +node_log_debug_enable: false +node_log_debug_config: + parachain=debug,babe=debug,imonline=debug,slots=debug,sync=debug,consensus=debug,client=debug,forks=debug,txpool=debug,afg=debug,sub-authority-discovery=debug,sc_offchain=debug,runtime=debug,staking=debug,runtime::election-provider=debug ##################################################################################### # Advanced options diff --git a/roles/node/templates/env.j2 b/roles/node/templates/env.j2 index 36c76d3..574352c 100644 --- a/roles/node/templates/env.j2 +++ b/roles/node/templates/env.j2 @@ -72,6 +72,8 @@ RC_PRUNING=" RC_LOGS=" {%- if node_log_trace_enable %} -l{{ node_log_trace_config }} +{%- elif node_log_debug_enable %} +-l{{ node_log_debug_config }} {%- endif %}" RC_METRICS="\