Code cleanup
This commit is contained in:
parent
1cbb20797d
commit
0dc00c8f6a
1
.gitignore
vendored
1
.gitignore
vendored
@ -31,3 +31,4 @@ build/
|
||||
|
||||
### VS Code ###
|
||||
.vscode/
|
||||
.DS_Store/
|
||||
|
||||
@ -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());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user