Skip to content

Commit

Permalink
better banner for knox
Browse files Browse the repository at this point in the history
  • Loading branch information
jetoile committed Sep 26, 2017
1 parent 4e815fb commit 227576c
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.*;
import java.util.stream.Collectors;

public class KnoxBootstrap implements Bootstrap {
Expand Down Expand Up @@ -70,7 +67,8 @@ public String getName() {
public String getProperties() {
return "\n \t\t\t port:" + port +
"\n \t\t\t path:" + path +
"\n \t\t\t cluster:" + clusterName;
"\n \t\t\t cluster:" + clusterName +
"\n \t\t\t services:" + services.stream().map(s -> s.getName()).collect(Collectors.joining(", "));
}

private void init() {
Expand Down

0 comments on commit 227576c

Please sign in to comment.