Update id to appName and log proper id
This commit is contained in:
@@ -41,8 +41,8 @@ public class ApplicationLifecycle {
|
||||
.setPort(port)
|
||||
.setAddress(appName)
|
||||
.setName(appName)
|
||||
.setId(appName + "-" + port),
|
||||
result -> logger.infof("Service %s-%d registered", appName, port));
|
||||
.setId(appName),
|
||||
result -> logger.infof("Service %s (%d) registered", appName, port));
|
||||
}, 1000, TimeUnit.MILLISECONDS);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user