Skip to content

Commit 4e4c508

Browse files
committed
triedb/pathdb: improve logging
1 parent 91ea245 commit 4e4c508

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

triedb/pathdb/disklayer.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,11 +366,12 @@ func (dl *diskLayer) commit(bottom *diffLayer, force bool) (*diskLayer, error) {
366366
if dl.generator != nil {
367367
dl.generator.stop()
368368
progress = dl.generator.progressMarker()
369-
log.Info("Terminated snapshot generation")
370369

371370
// If the snapshot has been fully generated, unset the generator
372371
if progress == nil {
373372
dl.setGenerator(nil)
373+
} else {
374+
log.Info("Paused snapshot generation")
374375
}
375376
}
376377
// Flush the content in combined buffer. Any state data after the progress

triedb/pathdb/generate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func (g *generator) run(root common.Hash) {
131131
}
132132
if g.running {
133133
g.stop()
134-
log.Warn("Terminated the leftover generation cycle")
134+
log.Warn("Paused the leftover generation cycle")
135135
}
136136
g.running = true
137137
go g.generate(newGeneratorContext(root, g.progress, g.db))

0 commit comments

Comments
 (0)