mirror of https://github.com/docker/docs.git
Improve Error message to show node's Name and IP
Signed-off-by: Sriram Natarajan <natarajan.sriram@gmail.com>
This commit is contained in:
parent
bdbff32ee3
commit
49f644934c
|
|
@ -130,7 +130,7 @@ func (c *Cluster) newEntries(entries []*discovery.Entry) {
|
||||||
if old.IP != engine.IP {
|
if old.IP != engine.IP {
|
||||||
log.Errorf("ID duplicated. %s shared by %s and %s", engine.ID, old.IP, engine.IP)
|
log.Errorf("ID duplicated. %s shared by %s and %s", engine.ID, old.IP, engine.IP)
|
||||||
} else {
|
} else {
|
||||||
log.Errorf("node %q is already registered", engine.ID)
|
log.Errorf("node %q with IP %q is already registered", engine.Name, engine.IP)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue