logs for create schema

This commit is contained in:
Timo Bejan 2023-07-20 11:34:12 +03:00
parent 000b62ccc7
commit 3b693ebe1a

View File

@ -229,7 +229,8 @@ public class TenantManagementService implements TenantProvider {
jdbcTemplate.execute((StatementCallback<Boolean>) stmt -> stmt.execute("GRANT USAGE ON SCHEMA " + tenantRequest.getDatabaseConnection()
.getSchema() + " TO " + tenantRequest.getDatabaseConnection().getUsername()));
} catch (Exception e) {
log.warn("Could not create schema, ignoring", e);
log.warn("Could not create schema:", e);
throw new ResponseStatusException(HttpStatus.BAD_REQUEST, "Tenant creation failed: " + e.getMessage(), e);
}
}