Skip to content
This repository has been archived by the owner on Sep 19, 2018. It is now read-only.

warn log with exception does not print stack trace #67

Open
luguoxiang opened this issue Jan 20, 2017 · 3 comments
Open

warn log with exception does not print stack trace #67

luguoxiang opened this issue Jan 20, 2017 · 3 comments
Labels

Comments

@luguoxiang
Copy link

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
Copy link

Hello

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

@Fantomatic
Copy link

Same for me with the 5.2 version

@jimmidyson
Copy link
Contributor

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

@jcantrill jcantrill added the bug label Apr 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants