aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-10-30 10:32:15 +0100
committersimonbrandhof <simon.brandhof@gmail.com>2011-10-30 10:32:50 +0100
commitd3678f4fa989f71118d0595fe5962b55e0ca4f71 (patch)
tree7b641cb154e9dca10ac787e92e1ce62889127f3a
parent78e5033d8c535a357ef5e166afd1a00717aac5df (diff)
downloadsonarqube-d3678f4fa989f71118d0595fe5962b55e0ca4f71.tar.gz
sonarqube-d3678f4fa989f71118d0595fe5962b55e0ca4f71.zip
SONAR-2914 disable BeanUtils DEBUG logs when sonar.verbose is enabled
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/bootstrap/TempDirectories.java2
-rw-r--r--sonar-batch/src/main/resources/org/sonar/batch/logback.xml6
-rw-r--r--sonar-maven-plugin/src/main/resources/org/sonar/maven/logback.xml5
-rw-r--r--sonar-maven3-plugin/src/main/resources/org/sonar/maven3/logback.xml7
4 files changed, 16 insertions, 4 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/TempDirectories.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/TempDirectories.java
index f1ca7491db8..20afbc87836 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/TempDirectories.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/TempDirectories.java
@@ -88,8 +88,6 @@ public final class TempDirectories {
public void stop() {
directoriesByKey.clear();
- LoggerFactory.getLogger(getClass()).debug("Delete temporary directories");
-
// Deleting temp directory does not work on MS Windows and Sun JVM because URLClassLoader locks JARs and resources.
// The workaround is that sonar deletes orphans itself.
diff --git a/sonar-batch/src/main/resources/org/sonar/batch/logback.xml b/sonar-batch/src/main/resources/org/sonar/batch/logback.xml
index b016bf15c23..b05c4f38fa1 100644
--- a/sonar-batch/src/main/resources/org/sonar/batch/logback.xml
+++ b/sonar-batch/src/main/resources/org/sonar/batch/logback.xml
@@ -35,10 +35,14 @@
<level value="WARN"/>
</logger>
+ <!-- BeanUtils generate to many DEBUG logs when sonar.verbose is set -->
+ <logger name="org.apache.commons.beanutils.converters">
+ <level value="WARN"/>
+ </logger>
<root>
<level value="${ROOT_LOGGER_LEVEL}"/>
<appender-ref ref="STDOUT"/>
</root>
-
+
</configuration> \ No newline at end of file
diff --git a/sonar-maven-plugin/src/main/resources/org/sonar/maven/logback.xml b/sonar-maven-plugin/src/main/resources/org/sonar/maven/logback.xml
index b468f0c386d..8222534d5d3 100644
--- a/sonar-maven-plugin/src/main/resources/org/sonar/maven/logback.xml
+++ b/sonar-maven-plugin/src/main/resources/org/sonar/maven/logback.xml
@@ -16,6 +16,11 @@
<level value="ERROR"/>
</logger>
+ <!-- BeanUtils generate to many DEBUG logs when sonar.verbose is set -->
+ <logger name="org.apache.commons.beanutils.converters">
+ <level value="WARN"/>
+ </logger>
+
<!-- set INFO to activate SQL statistics. NOT RECOMMENDED -->
<logger name="org.sonar.DBSTATISTICS">
<level value="ERROR"/>
diff --git a/sonar-maven3-plugin/src/main/resources/org/sonar/maven3/logback.xml b/sonar-maven3-plugin/src/main/resources/org/sonar/maven3/logback.xml
index b468f0c386d..a36ca3cddde 100644
--- a/sonar-maven3-plugin/src/main/resources/org/sonar/maven3/logback.xml
+++ b/sonar-maven3-plugin/src/main/resources/org/sonar/maven3/logback.xml
@@ -3,7 +3,7 @@
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
- <pattern>[%level] [%d{HH:mm:ss.SSS}] %msg%n</pattern>
+ <pattern>[%level] [%d{HH:mm:ss.SSS}] %logger %msg%n</pattern>
</encoder>
</appender>
@@ -16,6 +16,11 @@
<level value="ERROR"/>
</logger>
+ <!-- BeanUtils generate to many DEBUG logs when sonar.verbose is set -->
+ <logger name="org.apache.commons.beanutils.converters">
+ <level value="WARN"/>
+ </logger>
+
<!-- set INFO to activate SQL statistics. NOT RECOMMENDED -->
<logger name="org.sonar.DBSTATISTICS">
<level value="ERROR"/>