Skip to content

Commit fb8d229

Browse files
authored
eth: do not warn on switching from snap sync to full sync (#32900)
This happens normally after a restart, so it is better to use Info level here. Signed-off-by: Csaba Kiraly <[email protected]>
1 parent 00f6f2b commit fb8d229

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

eth/handler.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,7 @@ func newHandler(config *handlerConfig) (*handler, error) {
181181
} else {
182182
head := h.chain.CurrentBlock()
183183
if head.Number.Uint64() > 0 && h.chain.HasState(head.Root) {
184-
// Print warning log if database is not empty to run snap sync.
185-
log.Warn("Switch sync mode from snap sync to full sync", "reason", "snap sync complete")
184+
log.Info("Switch sync mode from snap sync to full sync", "reason", "snap sync complete")
186185
} else {
187186
// If snap sync was requested and our database is empty, grant it
188187
h.snapSync.Store(true)

0 commit comments

Comments
 (0)