Skip to content

Commit

Permalink
Snapshot submission: Streamling wording for success message
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lfittl committed Nov 29, 2023
1 parent 7b335b6 commit ae20d55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion output/compact.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion output/full.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ae20d55

Please sign in to comment.