diff --git a/pom.xml b/pom.xml
index 77b10b64..6e6caff0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -292,6 +292,7 @@
org.flywaydb
flyway-core
+ 7.8.2
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/WebserviceInfoDAOImpl.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/WebserviceInfoDAOImpl.java
index d0cbf95b..08095344 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/WebserviceInfoDAOImpl.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/WebserviceInfoDAOImpl.java
@@ -132,7 +132,7 @@ public class WebserviceInfoDAOImpl implements WebserviceInfoDAO {
}
private boolean setMasterTo(final String uuid) {
- log.info("Set webservice {} as master", uuid);
+
final long now = Utils.getMillisecondsNow();
// check if this is registered
@@ -142,7 +142,9 @@ public class WebserviceInfoDAOImpl implements WebserviceInfoDAO {
.execute();
if (entries == null || entries.isEmpty()) {
- log.warn("The webservice with uuid: {} is not registered and cannot become a master", uuid);
+ if (log.isDebugEnabled()) {
+ log.debug("The webservice with uuid: {} is not registered and cannot become a master", uuid);
+ }
return false;
}
@@ -156,6 +158,8 @@ public class WebserviceInfoDAOImpl implements WebserviceInfoDAO {
return false;
}
+ log.info("Set webservice {} as master", uuid);
+
return true;
}
diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml
index 2b12492d..363f88ef 100644
--- a/src/main/resources/logback-spring.xml
+++ b/src/main/resources/logback-spring.xml
@@ -17,7 +17,7 @@
-
+