Skip to content

Commit

Permalink
Merge pull request #26 from uprendis/feature/less-verbose-snapshot-mi…
Browse files Browse the repository at this point in the history
…ssing-log

Demote verbosity for missing snapshot
  • Loading branch information
quan8 committed Dec 22, 2021
2 parents edae874 + fae0451 commit bb6c998
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/state/snapshot/journal.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func loadAndParseJournal(db ethdb.KeyValueStore, base *diskLayer) (snapshot, jou
// etc.), we just discard all diffs and try to recover them later.
journal := rawdb.ReadSnapshotJournal(db)
if len(journal) == 0 {
log.Warn("Loaded snapshot journal", "diskroot", base.root, "diffs", "missing")
log.Debug("Loaded snapshot journal", "diskroot", base.root, "diffs", "missing")
return base, generator, nil
}
r := rlp.NewStream(bytes.NewReader(journal), 0)
Expand Down
2 changes: 1 addition & 1 deletion core/state/snapshot/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func New(diskdb ethdb.KeyValueStore, triedb *trie.Database, cache int, root comm
}
if err != nil {
if rebuild {
log.Warn("Failed to load snapshot, regenerating", "err", err)
log.Debug("Failed to load snapshot, regenerating", "err", err)
snap.Rebuild(root)
return snap, nil
}
Expand Down

0 comments on commit bb6c998

Please sign in to comment.