Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Mar 1, 2024
1 parent de02a9d commit 83cea24
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/com/rultor/agents/aws/TerminatesInstance.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ public Iterable<Directive> process(final XML xml) throws IOException {
new TerminateInstancesRequest()
.withInstanceIds(instance)
);
Logger.info("Successfully terminated %s instance", instance);
Logger.info(
this, "Successfully terminated %s instance of %s",
instance, xml.xpath("/talk/@name").get(0)
);
return new Directives().xpath("/talk/ec2").strict(1).remove();
}
}

0 comments on commit 83cea24

Please sign in to comment.