fix #1747 add warning message

This commit is contained in:
Shinsuke Sugaya 2018-07-07 18:57:32 +09:00
parent e17850568b
commit d8fb8b7c39

View file

@ -277,6 +277,7 @@ public class FessEsClient implements Client {
final int port = runner.node().settings().getAsInt("transport.tcp.port", 9300);
client = createTransportClient(fessConfig, Lists.newArrayList(new TransportAddress(getInetAddressByName("localhost"), port)));
addTransportAddress("localhost", port);
logger.warn("Embedded Elasticsearch is running. This configuration is not recommended for production use.");
} else {
client = createTransportClient(fessConfig, transportAddressList);
}