Skip to content

Commit

Permalink
log previous and current hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
luluz66 authored and tylerwilliams committed Mar 13, 2024
1 parent 5f815b6 commit 7824f61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ func (env *Env) check(cfg config.NodeHostConfig,
return ErrNotOwner
}
if len(s.Hostname) > 0 && !se(s.Hostname, env.hostname) {
return ErrHostnameChanged
return fmt.Errorf("%s: previous hostname: %q, current hostname: %q", ErrHostnameChanged, s.Hostname, env.hostname)
}
if s.DeploymentId != 0 && s.DeploymentId != cfg.GetDeploymentID() {
return ErrDeploymentIDChanged
Expand Down

0 comments on commit 7824f61

Please sign in to comment.