Code cleanup

This commit is contained in:
Timo Bejan 2023-11-06 23:57:18 +02:00
parent 1cbb20797d
commit 0dc00c8f6a
2 changed files with 3 additions and 3 deletions

1
.gitignore vendored
View File

@ -31,3 +31,4 @@ build/
### VS Code ###
.vscode/
.DS_Store/

View File

@ -45,7 +45,7 @@ public class TenantSpringLiquibaseExecutor implements InitializingBean, Resource
log.info("DynamicDataSources based multi-tenancy enabled");
try {
this.runOnAllTenants(tenantProvider.getTenants());
}catch (RetryableException e){
} catch (RetryableException e) {
log.warn("Tenant Service not online, skipping liquibase migration: {}", e.getMessage(), e);
}
}
@ -68,8 +68,7 @@ public class TenantSpringLiquibaseExecutor implements InitializingBean, Resource
liquibase.setLiquibaseSchema(tenant.getDatabaseConnection().getSchema());
liquibase.afterPropertiesSet();
} catch (Exception e) {
e.printStackTrace();
log.error("Failed to run liquibase migration on tenant: {}", tenant.getTenantId(),e);
log.error("Failed to run liquibase migration on tenant: {}", tenant.getTenantId(), e);
}
log.info("Liquibase ran for tenant " + tenant.getTenantId());
}