more network traffic tracing
This commit is contained in:
parent
957645d752
commit
ff3da4e152
|
@ -590,7 +590,7 @@ proc p2pProtocolBackendImpl*(p: P2PProtocol): Backend =
|
||||||
msg.defineThunk quote do:
|
msg.defineThunk quote do:
|
||||||
proc `thunkName`(`daemonVar`: `DaemonAPI`,
|
proc `thunkName`(`daemonVar`: `DaemonAPI`,
|
||||||
`streamVar`: `P2PStream`) {.async, gcsafe.} =
|
`streamVar`: `P2PStream`) {.async, gcsafe.} =
|
||||||
when `msgNameLit` == "beaconBlocksByRange" and chronicles.runtimeFilteringEnabled:
|
when chronicles.runtimeFilteringEnabled:
|
||||||
setLogLevel(LogLevel.TRACE)
|
setLogLevel(LogLevel.TRACE)
|
||||||
defer: setLogLevel(LogLevel.DEBUG)
|
defer: setLogLevel(LogLevel.DEBUG)
|
||||||
trace "incoming beaconBlocksByRange stream"
|
trace "incoming beaconBlocksByRange stream"
|
||||||
|
|
Loading…
Reference in New Issue