updated flyway

This commit is contained in:
anhefti 2021-04-27 15:17:16 +02:00
parent cd1b3274a7
commit f15c851b77
3 changed files with 8 additions and 3 deletions

View file

@ -292,6 +292,7 @@
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
<version>7.8.2</version>
</dependency>
<!-- EHCache -->

View file

@ -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;
}

View file

@ -17,7 +17,7 @@
<springProfile name="dev">
<root level="DEBUG" additivity="true">
<root level="INFO" additivity="true">
<appender-ref ref="STDOUT" />
<appender-ref ref="FILE" />
</root>