|
2 | 2 | <Configuration status="warn"> |
3 | 3 | <Properties> |
4 | 4 | <Property name="layout">%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n</Property> |
| 5 | + <!-- CI sets TEST_LOG_SUPPRESSED_LEVEL=error when ci-verbose label is present to show all errors. |
| 6 | + Defaults to off which disables these loggers entirely. --> |
| 7 | + <Property name="suppressed.level">${env:TEST_LOG_SUPPRESSED_LEVEL:-off}</Property> |
5 | 8 | </Properties> |
6 | 9 |
|
7 | 10 | <Appenders> |
|
18 | 21 | </Appenders> |
19 | 22 |
|
20 | 23 | <Loggers> |
| 24 | + <!-- Suppress expected errors from tests exercising error paths and from resources |
| 25 | + not available in test classpaths (e.g. build.properties, apps-bundle.json). |
| 26 | + These are not real failures - the tests pass, but the application logs at ERROR. --> |
| 27 | + <Logger name="org.hisp.dhis.scheduling" level="${suppressed.level}"/> |
| 28 | + <Logger name="org.hisp.dhis.system" level="${suppressed.level}"/> |
| 29 | + <Logger name="org.hisp.dhis.appmanager" level="${suppressed.level}"/> |
| 30 | + <Logger name="org.hisp.dhis.fileresource" level="${suppressed.level}"/> |
| 31 | + <Logger name="org.hisp.dhis.sms" level="${suppressed.level}"/> |
| 32 | + <Logger name="org.hisp.dhis.route" level="${suppressed.level}"/> |
| 33 | + <Logger name="org.hisp.dhis.dxf2.gml" level="${suppressed.level}"/> |
| 34 | + <Logger name="org.hisp.dhis.rules.engine" level="${suppressed.level}"/> |
| 35 | + <Logger name="org.hisp.dhis.tracker.imports.sms" level="${suppressed.level}"/> |
| 36 | + <!-- CrudControllerAdvice is the global @ControllerAdvice that catches exceptions from tests |
| 37 | + deliberately exercising error paths (e.g. SQL injection tests). The broad package suppression |
| 38 | + was replaced with this targeted class to keep other controller errors visible. --> |
| 39 | + <Logger name="org.hisp.dhis.webapi.controller.CrudControllerAdvice" level="${suppressed.level}"/> |
| 40 | + |
21 | 41 | <Root level="warn"> |
22 | 42 | <!-- Set to error so CI test runs are quiet, we see failed tests easily but still see errors from libraries |
23 | 43 | we use due to for example misconfigurations or so. If you want to increase the verbosity of specific |
|
30 | 50 |
|
31 | 51 | <Logger name="org.openapitools.codegen" level="off"/> |
32 | 52 |
|
| 53 | + <!-- Analytics tables do not exist in the test database, so any test that drives |
| 54 | + the analytics engine (e.g. ADEX) produces expected "relation does not exist" |
| 55 | + SQL errors. The tests still pass; suppress the noise. --> |
| 56 | + <Logger name="org.hisp.dhis.analytics.data.JdbcAnalyticsManager" level="fatal" additivity="false"/> |
| 57 | + <Logger name="org.hisp.dhis.analytics.data.handler.DataHandler" level="fatal" additivity="false"/> |
| 58 | + <Logger name="org.hisp.dhis.analytics.util.AnalyticsUtils" level="fatal" additivity="false"/> |
| 59 | + |
| 60 | + <!-- Tests that verify uniqueness constraints intentionally trigger duplicate-key |
| 61 | + violations; Hibernate logs every such exception at ERROR via SqlExceptionHelper. --> |
| 62 | + <Logger name="org.hibernate.engine.jdbc.spi.SqlExceptionHelper" level="fatal" additivity="false"/> |
| 63 | + |
33 | 64 | <!-- A few examples of loggers that might be useful to debug integration test issues. |
34 | 65 | Adding an AppenderRef is necessary to overrule the log level we have set on the Root AppenderRefs. |
35 | 66 | Once you add an AppenderRef to a Logger you need to set additivity to false otherwise logs might appear twice |
|
0 commit comments