change log level and add changelog

pull/17236/head
cskh 2023-05-09 11:54:59 -04:00
parent 7eda9c7f22
commit 8124fb33ae
2 changed files with 4 additions and 1 deletions

3
.changelog/17236.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:improvement
logging: change snapshot log header from `agent.server.snapshot` to `agent.server.raft.snapshot`
```

View File

@ -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.