diff options
author | Belen Pruvost <belen.pruvost@sonarsource.com> | 2021-08-17 23:38:09 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-08-19 20:08:15 +0000 |
commit | 7a6e871b1a37a53e76d483e0b65b811c6ac6beb9 (patch) | |
tree | c01fabd75ca6a9b476ebf6fb1c1e61b2326a9e4d /server/sonar-webserver-api | |
parent | 0cbc47585976e86e63753f74e285ef95b7e59657 (diff) | |
download | sonarqube-7a6e871b1a37a53e76d483e0b65b811c6ac6beb9.tar.gz sonarqube-7a6e871b1a37a53e76d483e0b65b811c6ac6beb9.zip |
SONAR-15142 - Add componentKey to all logs
Diffstat (limited to 'server/sonar-webserver-api')
2 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-webserver-api/src/main/java/org/sonar/server/plugins/PluginConsentVerifier.java b/server/sonar-webserver-api/src/main/java/org/sonar/server/plugins/PluginConsentVerifier.java index 178ec824b7a..582c4e35a82 100644 --- a/server/sonar-webserver-api/src/main/java/org/sonar/server/plugins/PluginConsentVerifier.java +++ b/server/sonar-webserver-api/src/main/java/org/sonar/server/plugins/PluginConsentVerifier.java @@ -54,7 +54,7 @@ public class PluginConsentVerifier implements Startable { if (hasExternalPlugins && NOT_ACCEPTED == PluginRiskConsent.valueOf(property.getValue())) { addWarningInSonarDotLog(); property.setValue(REQUIRED.name()); - dbClient.propertiesDao().saveProperty(session, property, null, null, null); + dbClient.propertiesDao().saveProperty(session, property, null, null, null, null); session.commit(); } else if (!hasExternalPlugins && REQUIRED == PluginRiskConsent.valueOf(property.getValue())) { dbClient.propertiesDao().deleteGlobalProperty(PLUGINS_RISK_CONSENT, session); diff --git a/server/sonar-webserver-api/src/main/java/org/sonar/server/project/ProjectDefaultVisibility.java b/server/sonar-webserver-api/src/main/java/org/sonar/server/project/ProjectDefaultVisibility.java index 07d0d37da1c..0bcb0010a03 100644 --- a/server/sonar-webserver-api/src/main/java/org/sonar/server/project/ProjectDefaultVisibility.java +++ b/server/sonar-webserver-api/src/main/java/org/sonar/server/project/ProjectDefaultVisibility.java @@ -46,6 +46,6 @@ public class ProjectDefaultVisibility { public void set(DbSession dbSession, Visibility visibility) { dbClient.propertiesDao().saveProperty(dbSession, new PropertyDto() .setKey(PROJECTS_DEFAULT_VISIBILITY_PROPERTY_NAME) - .setValue(visibility.getLabel()), null, null, null); + .setValue(visibility.getLabel()), null, null, null, null); } } |