Skip to content

Commit

Permalink
Merge pull request #5 from luluz66/hostname
Browse files Browse the repository at this point in the history
log previous and current hostname
  • Loading branch information
tylerwilliams committed Mar 13, 2024
2 parents 21c8b8e + d9b8480 commit 661013b
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 661013b

Please sign in to comment.