fabric8io / elasticsearch-cloud-kubernetes

Other
169 stars 90 forks source link

warn log with exception does not print stack trace #67

Open luguoxiang opened 7 years ago

luguoxiang commented 7 years ago

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);

deadlyhawk commented 7 years ago

Hello

i have same issue with elasticsearch-cloud-kubernetes-5.0.1 and with elasticsearch-cloud-kubernetes-5.1.1

Fantomatic commented 7 years ago

Same for me with the 5.2 version

jimmidyson commented 7 years ago

PR welcome to fix it if any of you have time.