Code cleanup
This commit is contained in:
parent
1cbb20797d
commit
0dc00c8f6a
1
.gitignore
vendored
1
.gitignore
vendored
@ -31,3 +31,4 @@ build/
|
|||||||
|
|
||||||
### VS Code ###
|
### VS Code ###
|
||||||
.vscode/
|
.vscode/
|
||||||
|
.DS_Store/
|
||||||
|
|||||||
@ -45,7 +45,7 @@ public class TenantSpringLiquibaseExecutor implements InitializingBean, Resource
|
|||||||
log.info("DynamicDataSources based multi-tenancy enabled");
|
log.info("DynamicDataSources based multi-tenancy enabled");
|
||||||
try {
|
try {
|
||||||
this.runOnAllTenants(tenantProvider.getTenants());
|
this.runOnAllTenants(tenantProvider.getTenants());
|
||||||
}catch (RetryableException e){
|
} catch (RetryableException e) {
|
||||||
log.warn("Tenant Service not online, skipping liquibase migration: {}", e.getMessage(), 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.setLiquibaseSchema(tenant.getDatabaseConnection().getSchema());
|
||||||
liquibase.afterPropertiesSet();
|
liquibase.afterPropertiesSet();
|
||||||
} catch (Exception e) {
|
} 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());
|
log.info("Liquibase ran for tenant " + tenant.getTenantId());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user