diff options
author | lukasz-jarocki-sonarsource <lukasz.jarocki@sonarsource.com> | 2023-10-26 14:55:02 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-10-26 20:02:35 +0000 |
commit | 72b564b999526a8fe9474c3054610980e96e5b69 (patch) | |
tree | 489aaa69fae523eb5496f428a0240154029745fc | |
parent | 9ef52b9289153f10fd3a890d1abdbd722fc36dd3 (diff) | |
download | sonarqube-branch-10.2.tar.gz sonarqube-branch-10.2.zip |
SONAR-20855 uploading logs on failure on cirrusbranch-10.2
-rw-r--r-- | .cirrus.yml | 2 | ||||
-rw-r--r-- | server/sonar-webserver/src/main/java/org/sonar/server/app/TomcatAccessLog.java | 2 |
2 files changed, 3 insertions, 1 deletions
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); |