From: lukasz-jarocki-sonarsource Date: Thu, 26 Oct 2023 12:55:02 +0000 (+0200) Subject: SONAR-20855 uploading logs on failure on cirrus X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=72b564b999526a8fe9474c3054610980e96e5b69;p=sonarqube.git SONAR-20855 uploading logs on failure on cirrus --- diff --git a/.cirrus.yml b/.cirrus.yml index 9d77c210952..da2770e0eb2 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -147,6 +147,8 @@ default_artifact_template: &DEFAULT_ARTIFACTS_TEMPLATE path: "**/build/reports/**/*" screenshots_artifacts: path: "**/build/screenshots/**/*" + log_artifacts: + path: "**/build/**/*.log" always: profile_artifacts: path: "**/build/reports/profile/**/*" diff --git a/server/sonar-webserver/src/main/java/org/sonar/server/app/TomcatAccessLog.java b/server/sonar-webserver/src/main/java/org/sonar/server/app/TomcatAccessLog.java index 60a9bdf7621..1291477c373 100644 --- a/server/sonar-webserver/src/main/java/org/sonar/server/app/TomcatAccessLog.java +++ b/server/sonar-webserver/src/main/java/org/sonar/server/app/TomcatAccessLog.java @@ -33,7 +33,7 @@ class TomcatAccessLog { private static final String PROPERTY_ENABLE = "sonar.web.accessLogs.enable"; private static final String PROPERTY_PATTERN = "sonar.web.accessLogs.pattern"; - private static final String DEFAULT_SQ_ACCESS_LOG_PATTERN = "%h %l %u [%t] \"%r\" %s %b \"%i{Referer}\" \"%i{User-Agent}\" \"%reqAttribute{ID}\""; + private static final String DEFAULT_SQ_ACCESS_LOG_PATTERN = "%h %l %u [%t] \"%r\" %s %b \"%i{Referer}\" \"%i{User-Agent}\" \"%reqAttribute{ID}\" %D"; void configure(Tomcat tomcat, Props props) { tomcat.setSilent(true);