Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add debug logs variable #89

Merged
merged 2 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 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,10 +222,9 @@ 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


#####################################################################################
# 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
Loading