Skip to content

Commit

Permalink
chore: fix the error message format
Browse files Browse the repository at this point in the history
  • Loading branch information
huikang committed Jun 2, 2023
1 parent 7293e1a commit ca0754d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -4571,13 +4571,13 @@ func (a *Agent) persistServerMetadata() {

f, err := consul.OpenServerMetadata(file)
if err != nil {
a.logger.Error("failed to open existing server metadata: %w", err)
a.logger.Error("failed to open existing server metadata", "error", err)
continue
}

if err := consul.WriteServerMetadata(f); err != nil {
f.Close()
a.logger.Error("failed to write server metadata: %w", err)
a.logger.Error("failed to write server metadata", "error", err)
continue
}

Expand Down

0 comments on commit ca0754d

Please sign in to comment.