-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNOW-1229142: Should not shade apache commons logging #1667
Comments
Hello @OskarKjellin , Thanks for raising the issue, could you provide example (sample jdbc application or code snippet) with jdbc logs how Snowflake jdbc connector is shadding logs from the Apache HTTP client. Regards, |
can't really share any code snippet unfortunately, we're running things through the java ingest sdk. And if you check the source for that class you can clearly see: So it's shading apache commons logging, meaning that you cannot bridge it to slf4j |
Hello @OskarKjellin , Could you please use or switch to thin jar and please add jcl-over-slf4j and exclude commons-logging in application pom.xml and try. Regards, |
Hi again, We're getting the dependency transitively through And I would still like to use the shaded version if possible to avoid possible dependency collision problems. Is your take that it's expected behaviour to shade the logging facade? |
Hello @OskarKjellin , we confirmed this gap and will work on eliminating it. Will keep this thread posted. Regards, |
Awesome, happy to hear! Thanks for confirming. |
@OskarKjellin I'm trying to figure out what might be happening in your scenario with this warning that you're seeing: In theory, I should see the same thing if I try to run an application that uses the Ingest Java SDK library, correct? What version of the ingest SDK were you using? Is the following Maven coordinates the only Snowflake dependency defined in your build tool's configuration? Can you also list for me the log4j and slf4j libraries you're using, please? |
@sfc-gh-wfateem I think part of the reason might be that there is some other log4j in the classpath. |
@OskarKjellin I agree. I'm not sure what the background was leading to that decision, assuming it wasn't done by mistake. |
@sfc-gh-wfateem any update on getting this fixed? |
Because the apache http client is shaded, the logging it uses (apache commons logging) also becomes shaded.
When this is shaded it's not possible to use the commons logging to slf4j bridge, meaning that our logs get filled with:
The text was updated successfully, but these errors were encountered: