more network traffic tracing

This commit is contained in:
Zahary Karadjov 2019-11-14 16:19:53 +00:00 committed by zah
parent 957645d752
commit ff3da4e152
1 changed files with 1 additions and 1 deletions

View File

@ -590,7 +590,7 @@ proc p2pProtocolBackendImpl*(p: P2PProtocol): Backend =
msg.defineThunk quote do:
proc `thunkName`(`daemonVar`: `DaemonAPI`,
`streamVar`: `P2PStream`) {.async, gcsafe.} =
when `msgNameLit` == "beaconBlocksByRange" and chronicles.runtimeFilteringEnabled:
when chronicles.runtimeFilteringEnabled:
setLogLevel(LogLevel.TRACE)
defer: setLogLevel(LogLevel.DEBUG)
trace "incoming beaconBlocksByRange stream"