diff options
author | Fabrice Bellingard <bellingard@gmail.com> | 2012-07-06 17:27:59 +0200 |
---|---|---|
committer | Fabrice Bellingard <bellingard@gmail.com> | 2012-07-06 17:31:21 +0200 |
commit | d383475212ca9d551adcf458657ae4556721e34f (patch) | |
tree | 630accd17e018c05b26949758d996ed4da17c17b /sonar-application/src | |
parent | c05075306cc0b6831d869f8c7cc8b617cc94e568 (diff) | |
download | sonarqube-d383475212ca9d551adcf458657ae4556721e34f.tar.gz sonarqube-d383475212ca9d551adcf458657ae4556721e34f.zip |
SONAR-3590 Log all Rails warnings & errors in "sonar.log" file
=> Initial issue: when an exception is raised in a ruby widget, the
error stack trace is not logged in the sonar.log file
Diffstat (limited to 'sonar-application/src')
-rw-r--r-- | sonar-application/src/main/assembly/conf/logback.xml | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/sonar-application/src/main/assembly/conf/logback.xml b/sonar-application/src/main/assembly/conf/logback.xml index a380678fc9d..1c36ddc015a 100644 --- a/sonar-application/src/main/assembly/conf/logback.xml +++ b/sonar-application/src/main/assembly/conf/logback.xml @@ -37,16 +37,22 @@ </encoder> </appender> - <!-- - Profiling of HTTP requests. Set level to DEBUG in order to log all the HTTP and SQL requests. - Example of command-line to get the HTTP requests with execution time greater than 10s : - grep 'rails Completed in [0-9]\{5,\}ms' < profiling.log - --> + <!-- Display Rails warnings and errors in the standard Sonar log --> <logger name="rails" additivity="false"> <level value="WARN"/> + <appender-ref ref="SONAR_FILE"/> + </logger> + <!-- + Profiling of HTTP and SQL requests in Rails: + + <logger name="rails" additivity="false"> + <level value="DEBUG"/> <appender-ref ref="PROFILING_FILE"/> </logger> - + + Example of command-line to get the HTTP requests with execution time greater than 10s : + grep 'rails Completed in [0-9]\{5,\}ms' < profiling.log + --> <logger name="org.hibernate.cache.ReadWriteCache"> <!-- removing "An item was expired by the cache while it was locked (increase your cache timeout)" msg --> |