debug minimal docker setup

This commit is contained in:
anhefti 2024-02-28 13:39:31 +01:00
parent c520777585
commit 4d55104a0b
2 changed files with 17 additions and 12 deletions

View file

@ -76,22 +76,26 @@ public class WebserviceInit implements ApplicationListener<ApplicationReadyEvent
SEBServerInit.INIT_LOGGER.info("----> ");
SEBServerInit.INIT_LOGGER.info("----> Register Webservice: {}", this.webserviceInfo.getWebserviceUUID());
if (this.webserviceInfoDAO.isInitialized()) {
this.registerWebservice();
try {
if (this.webserviceInfoDAO.isInitialized()) {
this.registerWebservice();
// Apply migration if needed and possible
SEBServerInit.INIT_LOGGER.info("----> ");
this.sebServerMigrationStrategy.applyMigration();
SEBServerInit.INIT_LOGGER.info("----> ");
// Apply migration if needed and possible
SEBServerInit.INIT_LOGGER.info("----> ");
this.sebServerMigrationStrategy.applyMigration();
SEBServerInit.INIT_LOGGER.info("----> ");
} else {
} else {
// Apply migration if needed and possible
SEBServerInit.INIT_LOGGER.info("----> ");
this.sebServerMigrationStrategy.applyMigration();
SEBServerInit.INIT_LOGGER.info("----> ");
// Apply migration if needed and possible
SEBServerInit.INIT_LOGGER.info("----> ");
this.sebServerMigrationStrategy.applyMigration();
SEBServerInit.INIT_LOGGER.info("----> ");
this.registerWebservice();
this.registerWebservice();
}
} catch (final Exception e) {
SEBServerInit.INIT_LOGGER.error("Failed to apply data import and migration --> ", e);
}
SEBServerInit.INIT_LOGGER.info("----> ");

View file

@ -57,6 +57,7 @@ public class WebserviceInfoDAOImpl implements WebserviceInfoDAO {
.execute();
return true;
} catch (final Exception e) {
log.warn("DB Context not initialized: ", e);
return false;
}
}