summaryrefslogtreecommitdiffstats
path: root/vespa-maven-plugin
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@vespa.ai>2023-06-14 11:31:43 +0200
committerJon Bratseth <bratseth@vespa.ai>2023-06-14 11:31:43 +0200
commitacfa9206524c4e49e946522dfdbe4c9e8d292785 (patch)
tree271f4d42865b529363b3c7780a78247ece5f58cc /vespa-maven-plugin
parent086b5e4fdab9d3ca275d87c740108d48945034bb (diff)
Log instance and tags
Diffstat (limited to 'vespa-maven-plugin')
-rw-r--r--vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/EffectiveServicesMojo.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/EffectiveServicesMojo.java b/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/EffectiveServicesMojo.java
index 377975b3d01..7eae86057d4 100644
--- a/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/EffectiveServicesMojo.java
+++ b/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/EffectiveServicesMojo.java
@@ -46,7 +46,10 @@ public class EffectiveServicesMojo extends AbstractVespaDeploymentMojo {
ZoneId zone = zoneOf(environment, region);
Path output = Paths.get(outputDirectory).resolve("services-" + zone.environment().value() + "-" + zone.region().value() + ".xml");
Files.write(output, effectiveServices(services, zone, InstanceName.from(instance), Tags.fromString(tags)).getBytes(StandardCharsets.UTF_8));
- getLog().info("Effective services for " + zone + " written to " + output);
+ getLog().info("Effective services for " + zone +
+ ", instance " + instance +
+ ( tags.isEmpty() ? "" : ", tags " + tags ) +
+ " written to " + output);
}
static String effectiveServices(File servicesFile, ZoneId zone, InstanceName instance, Tags tags) throws Exception {