Skip to content

Commit

Permalink
change log level and add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
huikang committed May 9, 2023
1 parent 7eda9c7 commit 8124fb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/17236.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
logging: change snapshot log header from `agent.server.snapshot` to `agent.server.raft.snapshot`
```
2 changes: 1 addition & 1 deletion snapshot/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func New(logger hclog.Logger, r *raft.Raft) (*Snapshot, error) {
if err != nil {
return nil, fmt.Errorf("failed to create snapshot file: %v", err)
}
logger.Info("creating temporary file of snapshot", "path", archive.Name())
logger.Debug("creating temporary file of snapshot", "path", archive.Name())

// If anything goes wrong after this point, we will attempt to clean up
// the temp file. The happy path will disarm this.
Expand Down

0 comments on commit 8124fb3

Please sign in to comment.