mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Changed warning message
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
@@ -582,7 +582,7 @@ func (c *client) processRouteInfo(info *Info) {
|
||||
// Check if remote has same server name than this server.
|
||||
if !c.route.didSolicit && info.Name == srvName {
|
||||
// For now simply report as a warning.
|
||||
c.Warnf("Remote server has the same name: %q", info.Name)
|
||||
c.Warnf("Remote server has a duplicate name: %q", info.Name)
|
||||
}
|
||||
|
||||
// Mark that the INFO protocol has been received, so we can detect updates.
|
||||
|
||||
@@ -1361,7 +1361,7 @@ func TestRouteDuplicateServerName(t *testing.T) {
|
||||
|
||||
select {
|
||||
case w := <-l.warn:
|
||||
if !strings.Contains(w, "Remote server has the same name") {
|
||||
if !strings.Contains(w, "Remote server has a duplicate name") {
|
||||
t.Fatalf("Expected warning about same name, got %q", w)
|
||||
}
|
||||
case <-time.After(time.Second):
|
||||
|
||||
Reference in New Issue
Block a user