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-core/src | |
parent | 0cbc47585976e86e63753f74e285ef95b7e59657 (diff) | |
download | sonarqube-7a6e871b1a37a53e76d483e0b65b811c6ac6beb9.tar.gz sonarqube-7a6e871b1a37a53e76d483e0b65b811c6ac6beb9.zip |
SONAR-15142 - Add componentKey to all logs
Diffstat (limited to 'server/sonar-webserver-core/src')
3 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-webserver-core/src/main/java/org/sonar/server/platform/PersistentSettings.java b/server/sonar-webserver-core/src/main/java/org/sonar/server/platform/PersistentSettings.java index cd50694adce..485cb62d295 100644 --- a/server/sonar-webserver-core/src/main/java/org/sonar/server/platform/PersistentSettings.java +++ b/server/sonar-webserver-core/src/main/java/org/sonar/server/platform/PersistentSettings.java @@ -72,7 +72,7 @@ public class PersistentSettings { if (value == null) { dbClient.propertiesDao().deleteGlobalProperty(key, dbSession); } else { - dbClient.propertiesDao().saveProperty(dbSession, new PropertyDto().setKey(key).setValue(value), null, null, null); + dbClient.propertiesDao().saveProperty(dbSession, new PropertyDto().setKey(key).setValue(value), null, null, null, null); } // refresh the cache of settings delegate.setProperty(key, value); diff --git a/server/sonar-webserver-core/src/main/java/org/sonar/server/platform/serverid/ServerIdManager.java b/server/sonar-webserver-core/src/main/java/org/sonar/server/platform/serverid/ServerIdManager.java index f87fa6f23c2..10047e05c1b 100644 --- a/server/sonar-webserver-core/src/main/java/org/sonar/server/platform/serverid/ServerIdManager.java +++ b/server/sonar-webserver-core/src/main/java/org/sonar/server/platform/serverid/ServerIdManager.java @@ -140,7 +140,7 @@ public class ServerIdManager implements Startable { private void persistServerId(DbSession dbSession, ServerId serverId) { dbClient.propertiesDao().saveProperty(dbSession, new PropertyDto().setKey(SERVER_ID).setValue(serverId.toString()), - null, null, null); + null, null, null, null); } private void persistChecksum(DbSession dbSession, String checksump) { diff --git a/server/sonar-webserver-core/src/test/java/org/sonar/server/platform/serverid/ServerIdManagerTest.java b/server/sonar-webserver-core/src/test/java/org/sonar/server/platform/serverid/ServerIdManagerTest.java index 97d28f89917..8505afc474b 100644 --- a/server/sonar-webserver-core/src/test/java/org/sonar/server/platform/serverid/ServerIdManagerTest.java +++ b/server/sonar-webserver-core/src/test/java/org/sonar/server/platform/serverid/ServerIdManagerTest.java @@ -345,7 +345,7 @@ public class ServerIdManagerTest { private void insertServerId(String serverId) { dbClient.propertiesDao().saveProperty(dbSession, new PropertyDto().setKey(CoreProperties.SERVER_ID).setValue(serverId), - null, null, null); + null, null, null, null); dbSession.commit(); } |