Skip to content
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

The log level of the integration test for the drill feature should not be DEBUG #452

Open
essobedo opened this issue Jul 19, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@essobedo
Copy link
Contributor

It appears that the log level used for the camel-drill feature is DEBUG while INFO is expected which fills up the log file

@stataru8 stataru8 self-assigned this Jul 19, 2024
@essobedo essobedo added the enhancement New feature or request label Jul 22, 2024
@essobedo essobedo added this to the 4.8.0 milestone Jul 22, 2024
@stataru8
Copy link
Collaborator

stataru8 commented Jul 24, 2024

I still haven't found a solution for this. Here is what I have discovered so far:

  • the logs causing the spam aren't coming from the Apache Drill container
  • adding log4j2.xml or logback.xml to the classpath + corresponding dependencies makes a difference, but the logs causing the spam aren't affected
  • the logs causing the spam originate from the package oadd.* -> https://github.com/apache/drill/blob/drill-1.21.2/exec/jdbc-all/pom.xml#L35, <bundle dependency='true'>wrap:mvn:org.apache.drill.exec/drill-jdbc-all/${apache-drill-version}$Export-Package=org.apache.drill.jdbc.*;version=${apache-drill-version}&amp;SPI-Provider=java.sql.Driver</bundle>
  • manually deleting the logback package, ch folder, from drill-jdbc-all-1.21.2.jar in my local Maven repo worked

@stataru8
Copy link
Collaborator

Interestingly enough, having this in the integration test classes breaks the test

System.setProperty("logback.configurationFile", ".../logback-test.xml");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants