lodestar icon indicating copy to clipboard operation
lodestar copied to clipboard

Not able to turn on debug for a specific module

Open twoeths opened this issue 3 years ago • 1 comments

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

twoeths avatar Apr 15 '21 03:04 twoeths

@tuyennhv Still happening?

dapplion avatar Sep 03 '21 08:09 dapplion