I found a warn log with KubernetesClientException in my elastic search log, but the stack trace is not printed:
[2017-01-20T03:07:10,393][WARN ][i.f.e.d.k.KubernetesUnicastHostsProvider] [es-client-2799791230-qm6t0] Exception caught during discovery: io.fabric8.kubernetes.client.KubernetesClientException: An error has occurred.
The log is printed like this in source code
logger.warn("Exception caught during discovery: {}", e, e.getMessage());
For slf4j log, it seems the exception should be the last param:
logger.warn("Exception caught during discovery: {}", e.getMessage(), e);
I found a warn log with KubernetesClientException in my elastic search log, but the stack trace is not printed:
[2017-01-20T03:07:10,393][WARN ][i.f.e.d.k.KubernetesUnicastHostsProvider] [es-client-2799791230-qm6t0] Exception caught during discovery: io.fabric8.kubernetes.client.KubernetesClientException: An error has occurred. The log is printed like this in source code logger.warn("Exception caught during discovery: {}", e, e.getMessage()); For slf4j log, it seems the exception should be the last param: logger.warn("Exception caught during discovery: {}", e.getMessage(), e);