mirror of https://github.com/status-im/consul.git
chore: fix the error message format (#17554)
This commit is contained in:
parent
d9e18b4bf0
commit
cf4059f3ce
|
@ -4571,13 +4571,13 @@ func (a *Agent) persistServerMetadata() {
|
||||||
|
|
||||||
f, err := consul.OpenServerMetadata(file)
|
f, err := consul.OpenServerMetadata(file)
|
||||||
if err != nil {
|
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
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := consul.WriteServerMetadata(f); err != nil {
|
if err := consul.WriteServerMetadata(f); err != nil {
|
||||||
f.Close()
|
f.Close()
|
||||||
a.logger.Error("failed to write server metadata: %w", err)
|
a.logger.Error("failed to write server metadata", "error", err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue