summaryrefslogtreecommitdiffstats
path: root/node-repository
diff options
context:
space:
mode:
authorHåkon Hallingstad <hakon@oath.com>2018-12-07 01:59:58 +0100
committerHåkon Hallingstad <hakon@oath.com>2018-12-07 01:59:58 +0100
commit14ed5595c31fc1f803c5ae3bdcd50b0f743ee5d2 (patch)
treecedb157d5241dba54036e33e4bbd7156b4a40c7e /node-repository
parent1c5812260aa8a49e7d25d26ade15008d81b49374 (diff)
Remove infra app from duper model only if it is supposed to be in duper model
Diffstat (limited to 'node-repository')
-rw-r--r--node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/InfrastructureProvisioner.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/InfrastructureProvisioner.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/InfrastructureProvisioner.java
index a30da2c96ac..443cbf4c358 100644
--- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/InfrastructureProvisioner.java
+++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/InfrastructureProvisioner.java
@@ -92,6 +92,14 @@ public class InfrastructureProvisioner extends Maintainer {
duperModel.infraApplicationActivated(
application.getApplicationId(),
hostSpecs.stream().map(HostSpec::hostname).map(HostName::from).collect(Collectors.toList()));
+
+ String detail;
+ if (hostSpecs.size() < 10) {
+ detail = ": " + hostSpecs.stream().map(HostSpec::hostname).collect(Collectors.joining(","));
+ } else {
+ detail = " with " + hostSpecs.size() + " hosts";
+ }
+ logger.log(LogLevel.INFO, "Infrastructure application " + application.getApplicationId() + " activated" + detail);
} catch (RuntimeException e) {
logger.log(LogLevel.INFO, "Failed to activate " + application.getApplicationId(), e);
// loop around to activate the next application