Skip to content

Commit 91e9346

Browse files
committed
Add slf4j-simple logging
1 parent 867ef77 commit 91e9346

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/main/java/org/cloudfoundry/community/servicebroker/postgresql/service/PostgreSQLServiceInstanceBindingService.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
import org.springframework.cloud.servicebroker.model.*;
2626
import org.springframework.cloud.servicebroker.service.ServiceInstanceBindingService;
2727
import org.springframework.stereotype.Service;
28-
29-
import java.sql.SQLException;
3028
import java.util.HashMap;
3129
import java.util.Map;
3230

@@ -48,13 +46,14 @@ public CreateServiceInstanceBindingResponse createServiceInstanceBinding(CreateS
4846

4947
String bindingId = createServiceInstanceBindingRequest.getBindingId();
5048
String serviceInstanceId = createServiceInstanceBindingRequest.getServiceInstanceId();
51-
String appGuid = createServiceInstanceBindingRequest.getBoundAppGuid();
49+
//String appGuid = createServiceInstanceBindingRequest.getBoundAppGuid();
5250

5351
try {
5452
//postgresDB.createUserInRoleForInstance(serviceInstanceId, bindingId);
5553
String dbURL = postgresDB.bindRoleToDatabase(serviceInstanceId, bindingId);
5654
Map<String, Object> credentials = new HashMap<String, Object>();
5755
credentials.put("uri", dbURL);
56+
logger.info("createServiceInstanceBinding: " + dbURL );
5857
return new CreateServiceInstanceAppBindingResponse().withCredentials(credentials);
5958

6059
} catch (Exception e) {

src/main/java/org/cloudfoundry/community/servicebroker/postgresql/service/PostgreSQLServiceInstanceService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ public DeleteServiceInstanceResponse deleteServiceInstance(DeleteServiceInstance
8686
postgresDB.deleteRole(serviceInstanceId);
8787

8888
} catch (SQLException e) {
89-
logger.info("Error while deleting service instance '" + serviceInstanceId + "'", e);
89+
logger.error("Error while deleting service instance '" + serviceInstanceId + "'", e);
9090

9191
} catch (Exception e){
92-
logger.info("Error while deleting service instance '" + serviceInstanceId + "'", e);
92+
logger.error("Error while deleting service instance '" + serviceInstanceId + "'", e);
9393
throw new ServiceBrokerException(e);
9494
}
9595
return new DeleteServiceInstanceResponse();

0 commit comments

Comments
 (0)