camel-karaf icon indicating copy to clipboard operation
camel-karaf copied to clipboard

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

Open essobedo opened this issue 1 year ago • 2 comments

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

essobedo avatar Jul 19 '24 14:07 essobedo

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 avatar Jul 24 '24 17:07 stataru8

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

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

stataru8 avatar Jul 24 '24 18:07 stataru8