Less noisy logs for unaligned finalized blocks (#901)

This commit is contained in:
Michael Sproul
2020-03-12 12:11:46 +11:00
committed by GitHub
parent 8c5bcfe53a
commit 6b2e9ff246

View File

@@ -2,7 +2,7 @@ use crate::{
hot_cold_store::HotColdDBError, DiskStore, Error, MemoryStore, SimpleDiskStore, Store, hot_cold_store::HotColdDBError, DiskStore, Error, MemoryStore, SimpleDiskStore, Store,
}; };
use parking_lot::Mutex; use parking_lot::Mutex;
use slog::{info, warn}; use slog::{debug, warn};
use std::mem; use std::mem;
use std::sync::mpsc; use std::sync::mpsc;
use std::sync::Arc; use std::sync::Arc;
@@ -131,7 +131,7 @@ impl<E: EthSpec> BackgroundMigrator<E> {
match DiskStore::freeze_to_state(db.clone(), state_root, &state) { match DiskStore::freeze_to_state(db.clone(), state_root, &state) {
Ok(()) => {} Ok(()) => {}
Err(Error::HotColdDBError(HotColdDBError::FreezeSlotUnaligned(slot))) => { Err(Error::HotColdDBError(HotColdDBError::FreezeSlotUnaligned(slot))) => {
info!( debug!(
db.log, db.log,
"Database migration postponed, unaligned finalized block"; "Database migration postponed, unaligned finalized block";
"slot" => slot.as_u64() "slot" => slot.as_u64()