Skip to content

Commit

Permalink
add debug logs variable
Browse files Browse the repository at this point in the history
  • Loading branch information
nprt committed Dec 17, 2024
1 parent c532d99 commit f1b9813
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 8 additions & 3 deletions roles/node/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions roles/node/templates/env.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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="\
Expand Down

0 comments on commit f1b9813

Please sign in to comment.