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

Not able to turn on debug for a specific module #2381

Closed
twoeths opened this issue Apr 15, 2021 · 1 comment · Fixed by #4509
Closed

Not able to turn on debug for a specific module #2381

twoeths opened this issue Apr 15, 2021 · 1 comment · Fixed by #4509

Comments

@twoeths
Copy link
Contributor

twoeths commented Apr 15, 2021

Describe the bug

By default we have info debug log level for all modules. If I use "--logger.chain.level debug" then I see debugs from all modules:

e5a33456475d51e6fc79a652d
Apr-15 05:02:24.898 [CHAIN]         verbose: Clock slot slot=162312
Apr-15 05:02:24.899 [CHAIN]           debug: Block pools:  pendingBlocks=0, currentSlot=162312
Apr-15 05:02:25.825 [CHAIN]         verbose: Block processed slot=154815, root=0xbfc9896b853ef6063de3c206071e6442cc44dde6966451f4f1ec2ca2e2a33cb2
Apr-15 05:02:26.045 [CHAIN]         verbose: New chain head headSlot=154815, headRoot=0xbfc9896b853ef6063de3c206071e6442cc44dde6966451f4f1ec2ca2e2a33cb2
Apr-15 05:02:26.046 [NETWORK]         debug: Req  dialing peer method=ping, encoding=ssz_snappy, agentVersion=N/A, peer=16...LibfSe, requestId=1815
Apr-15 05:02:26.047 [NETWORK]         debug: Req  dialing peer method=ping, encoding=ssz_snappy, agentVersion=nimbus, peer=16...PpWAqp, requestId=1816
Apr-15 05:02:26.047 [NETWORK]         debug: Req  dialing peer method=ping, encoding=ssz_snappy, agentVersion=N/A, peer=16...gAj37q, requestId=1817
Apr-15 05:02:26.048 [NETWORK]         debug: Req  dialing peer method=status, encoding=ssz_snappy, agentVersion=nimbus, peer=16...L1vsyn, requestId=1818
Apr-15 05:02:26.371 [NETWORK]         debug: Req  sending request method=ping, encoding=ssz_snappy, agentVersion=N/A, peer=16...LibfSe, requestId=1815, requestBody=0
Apr-15 05:02:26.373 [NETWORK]         debug: Req  sending request method=status, encoding=ssz_snappy, agentVersion=nimbus, peer=16...L1vsyn, requestId=1818, requestB

so it's like "all or nothing"

Expected behavior

We should be able to turn on "debug" level for a specific module.

Steps to Reproduce

  • Sync Prater with --logger.chain.level debug
@dapplion dapplion self-assigned this Apr 18, 2021
@dapplion
Copy link
Contributor

dapplion commented Sep 3, 2021

@tuyennhv Still happening?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants