mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-14 16:47:21 +00:00
Reduce the sync-related tracing in the testnets [skip ci]
This commit is contained in:
parent
ee2448b221
commit
a641331448
@ -81,7 +81,7 @@ proc init*(T: type BlockPool, db: BeaconChainDB): BlockPool =
|
|||||||
link(newRef, curRef)
|
link(newRef, curRef)
|
||||||
curRef = curRef.parent
|
curRef = curRef.parent
|
||||||
blocks[curRef.root] = curRef
|
blocks[curRef.root] = curRef
|
||||||
debug "Populating block pool", key = curRef.root, val = curRef
|
trace "Populating block pool", key = curRef.root, val = curRef
|
||||||
|
|
||||||
if latestStateRoot.isNone() and db.containsState(blck.state_root):
|
if latestStateRoot.isNone() and db.containsState(blck.state_root):
|
||||||
latestStateRoot = some(blck.state_root)
|
latestStateRoot = some(blck.state_root)
|
||||||
@ -169,7 +169,7 @@ proc addResolvedBlock(
|
|||||||
link(parent, blockRef)
|
link(parent, blockRef)
|
||||||
|
|
||||||
pool.blocks[blockRoot] = blockRef
|
pool.blocks[blockRoot] = blockRef
|
||||||
debug "Populating block pool", key = blockRoot, val = blockRef
|
trace "Populating block pool", key = blockRoot, val = blockRef
|
||||||
|
|
||||||
pool.addSlotMapping(blockRef)
|
pool.addSlotMapping(blockRef)
|
||||||
|
|
||||||
|
@ -590,10 +590,13 @@ 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 chronicles.runtimeFilteringEnabled:
|
## Uncomment this to enable tracing on all incoming requests
|
||||||
setLogLevel(LogLevel.TRACE)
|
## You can include `msgNameLit` in the condition to select
|
||||||
defer: setLogLevel(LogLevel.DEBUG)
|
## more specific requests:
|
||||||
trace "incoming " & `msgNameLit` & " stream"
|
# when chronicles.runtimeFilteringEnabled:
|
||||||
|
# setLogLevel(LogLevel.TRACE)
|
||||||
|
# defer: setLogLevel(LogLevel.DEBUG)
|
||||||
|
# trace "incoming " & `msgNameLit` & " stream"
|
||||||
|
|
||||||
defer:
|
defer:
|
||||||
`await` safeClose(`streamVar`)
|
`await` safeClose(`streamVar`)
|
||||||
|
@ -26,7 +26,7 @@ RUN cd /root/nim-beacon-chain \
|
|||||||
&& git fetch \
|
&& git fetch \
|
||||||
&& git reset --hard ${GIT_REVISION} \
|
&& git reset --hard ${GIT_REVISION} \
|
||||||
&& make -j$(nproc) update \
|
&& make -j$(nproc) update \
|
||||||
&& make LOG_LEVEL=TRACE NIMFLAGS="-d:debug -d:insecure -d:testnet_servers_image ${NETWORK_NIM_FLAGS}" beacon_node
|
&& make LOG_LEVEL=DEBUG NIMFLAGS="-d:debug -d:insecure -d:testnet_servers_image ${NETWORK_NIM_FLAGS}" beacon_node
|
||||||
|
|
||||||
# --------------------------------- #
|
# --------------------------------- #
|
||||||
# Starting new image to reduce size #
|
# Starting new image to reduce size #
|
||||||
|
Loading…
x
Reference in New Issue
Block a user