Cosmetic logging changes in the EL manager

This commit is contained in:
Zahary Karadjov 2023-03-10 11:12:29 +02:00
parent c6ce7f383d
commit 70d3045584
No known key found for this signature in database
GPG Key ID: C1F42EAFF38D570F
1 changed files with 5 additions and 5 deletions

View File

@ -904,8 +904,8 @@ proc getPayload*(m: ELManager,
req.cancel()
elif req.failed:
error "Failed to get execution payload from EL",
url = m.elConnections[idx].engineUrl.url,
err = req.error.msg
url = m.elConnections[idx].engineUrl.url,
err = req.error.msg
else:
const payloadFork = PayloadType.toFork
when payloadFork >= ConsensusFork.Capella:
@ -914,7 +914,7 @@ proc getPayload*(m: ELManager,
# to return the correct response type (i.e. the rule below will be enforced
# during deserialization).
if req.read.executionPayload.withdrawals.isNone:
warn "Execution client did not return any withdrawals for a post-Shanghai block",
warn "Execution client returned a block without a 'withdrawals' field for a post-Shanghai block",
url = m.elConnections[idx].engineUrl.url
continue
@ -2053,7 +2053,7 @@ proc syncEth1Chain(m: ELManager, connection: ELConnection) {.async.} =
rpcClient.eth_getBlockByNumber(blockId("latest"), false),
web3RequestsTimeout)
except CatchableError as err:
error "Failed to obtain the latest block from the EL", err = err.msg
warn "Failed to obtain the latest block from the EL", err = err.msg
raise err
m.syncTargetBlock = some(
@ -2091,7 +2091,7 @@ proc startChainSyncingLoop(m: ELManager) {.async.} =
let connection = awaitWithTimeout(
m.selectConnectionForChainSyncing(),
chronos.seconds(60)):
error "No suitable EL connection for deposit syncing"
warn "No suitable EL connection for deposit syncing"
await sleepAsync(chronos.seconds(30))
continue