From 1fefe2bb191252b4c0377569d7928c19a8e12221 Mon Sep 17 00:00:00 2001 From: tersec Date: Mon, 31 Aug 2020 14:34:04 +0000 Subject: [PATCH] ignore sqlite WAL journals in git; increase logging priority of attestation/block sending (#1590) * ignore sqlite WAL journal files in git; switch attestation resolved from info to debug * promote sent attestations/blocks to notice rather than demote resolved attestations/blocks to debug --- .gitignore | 2 ++ beacon_chain/fork_choice/fork_choice.nim | 2 +- beacon_chain/validator_duties.nim | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index da6ab1c8f..e5e01d662 100644 --- a/.gitignore +++ b/.gitignore @@ -30,6 +30,8 @@ build/ *.ssz *.log *.sqlite3 +*.sqlite3-shm +*.sqlite3-wal /local_testnet_data*/ /local_testnet*_data*/ diff --git a/beacon_chain/fork_choice/fork_choice.nim b/beacon_chain/fork_choice/fork_choice.nim index 2817ee0e5..5d6830c11 100644 --- a/beacon_chain/fork_choice/fork_choice.nim +++ b/beacon_chain/fork_choice/fork_choice.nim @@ -9,7 +9,7 @@ import # Standard library - std/[sequtils, sets, tables, typetraits], + std/[sequtils, sets, tables], # Status libraries stew/results, chronicles, # Internal diff --git a/beacon_chain/validator_duties.nim b/beacon_chain/validator_duties.nim index 5db5d9d7f..97ae4ff65 100644 --- a/beacon_chain/validator_duties.nim +++ b/beacon_chain/validator_duties.nim @@ -152,7 +152,7 @@ proc createAndSendAttestation(node: BeaconNode, if node.config.dumpEnabled: dump(node.config.dumpDirOutgoing, attestation.data, validator.pubKey) - info "Attestation sent", + notice "Attestation sent", attestation = shortLog(attestation), validator = shortLog(validator), indexInCommittee = indexInCommittee @@ -249,7 +249,7 @@ proc proposeSignedBlock*(node: BeaconNode, return head - info "Block proposed", + notice "Block proposed", blck = shortLog(newBlock.message), blockRoot = shortLog(newBlockRef[].root), validator = shortLog(validator)