From 311fe6f0d53728eabb0b2444d2d6b99546324b19 Mon Sep 17 00:00:00 2001 From: Lukas Fittl Date: Wed, 29 Nov 2023 01:01:10 -0800 Subject: [PATCH] Snapshot submission: Streamling wording for success message This adjusts the recently changed compact snapshot information to be closer to what it was before, and adds "full" to the full snapshot message for clarity: I [default] Submitted compact snapshots successfully: 5 activity, 2 logs I [default] Submitted full snapshot successfully Note that the compact snapshot message continues to emitted once per minute, not continuously as in past releases. --- output/compact.go | 2 +- output/full.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/output/compact.go b/output/compact.go index 39fecad67..0a38ccc86 100644 --- a/output/compact.go +++ b/output/compact.go @@ -158,7 +158,7 @@ func submitCompactSnapshot(ctx context.Context, server *state.Server, collection } } if len(details) > 0 { - logger.PrintInfo("Compact snapshots submitted: " + details) + logger.PrintInfo("Submitted compact snapshots successfully: " + details) } server.CompactLogTime = time.Now().Truncate(time.Minute) server.CompactLogStats = make(map[string]uint8) diff --git a/output/full.go b/output/full.go index 565c001a5..e509a2538 100644 --- a/output/full.go +++ b/output/full.go @@ -188,7 +188,7 @@ func submitSnapshot(ctx context.Context, server *state.Server, collectionOpts st if len(msg) > 0 && collectionOpts.TestRun { logger.PrintInfo(" %s", msg) } else if !quiet { - logger.PrintInfo("Submitted snapshot successfully") + logger.PrintInfo("Submitted full snapshot successfully") } return nil