updated flyway
This commit is contained in:
parent
cd1b3274a7
commit
f15c851b77
3 changed files with 8 additions and 3 deletions
1
pom.xml
1
pom.xml
|
@ -292,6 +292,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.flywaydb</groupId>
|
<groupId>org.flywaydb</groupId>
|
||||||
<artifactId>flyway-core</artifactId>
|
<artifactId>flyway-core</artifactId>
|
||||||
|
<version>7.8.2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- EHCache -->
|
<!-- EHCache -->
|
||||||
|
|
|
@ -132,7 +132,7 @@ public class WebserviceInfoDAOImpl implements WebserviceInfoDAO {
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean setMasterTo(final String uuid) {
|
private boolean setMasterTo(final String uuid) {
|
||||||
log.info("Set webservice {} as master", uuid);
|
|
||||||
final long now = Utils.getMillisecondsNow();
|
final long now = Utils.getMillisecondsNow();
|
||||||
|
|
||||||
// check if this is registered
|
// check if this is registered
|
||||||
|
@ -142,7 +142,9 @@ public class WebserviceInfoDAOImpl implements WebserviceInfoDAO {
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
if (entries == null || entries.isEmpty()) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -156,6 +158,8 @@ public class WebserviceInfoDAOImpl implements WebserviceInfoDAO {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.info("Set webservice {} as master", uuid);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
<springProfile name="dev">
|
<springProfile name="dev">
|
||||||
|
|
||||||
<root level="DEBUG" additivity="true">
|
<root level="INFO" additivity="true">
|
||||||
<appender-ref ref="STDOUT" />
|
<appender-ref ref="STDOUT" />
|
||||||
<appender-ref ref="FILE" />
|
<appender-ref ref="FILE" />
|
||||||
</root>
|
</root>
|
||||||
|
|
Loading…
Reference in a new issue