From 7a6e871b1a37a53e76d483e0b65b811c6ac6beb9 Mon Sep 17 00:00:00 2001 From: Belen Pruvost Date: Tue, 17 Aug 2021 23:38:09 +0200 Subject: SONAR-15142 - Add componentKey to all logs --- .../src/main/java/org/sonar/server/plugins/PluginConsentVerifier.java | 2 +- .../main/java/org/sonar/server/project/ProjectDefaultVisibility.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'server/sonar-webserver-api/src') 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); } } -- cgit v1.2.3