diff options
Diffstat (limited to 'openstack-client-connectors')
-rw-r--r-- | openstack-client-connectors/http-connector/src/main/java/com/woorea/openstack/connector/HttpClientConnector.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openstack-client-connectors/http-connector/src/main/java/com/woorea/openstack/connector/HttpClientConnector.java b/openstack-client-connectors/http-connector/src/main/java/com/woorea/openstack/connector/HttpClientConnector.java index d43e6c9..27bbe87 100644 --- a/openstack-client-connectors/http-connector/src/main/java/com/woorea/openstack/connector/HttpClientConnector.java +++ b/openstack-client-connectors/http-connector/src/main/java/com/woorea/openstack/connector/HttpClientConnector.java @@ -168,12 +168,15 @@ public class HttpClientConnector implements OpenStackClientConnector { catch (HttpResponseException e) { // What exactly does this mean? It does not appear to get thrown for // non-2XX responses as documented. + logger.error ("HttpResponseException: " +e.getMessage()); throw new OpenStackResponseException(e.getMessage(), e.getStatusCode()); } catch (UnknownHostException e) { + logger.error ("Unknown Host: " +e.getMessage()); throw new OpenStackConnectException("Unknown Host: " + e.getMessage()); } catch (IOException e) { + logger.error ("IOException: " +e.getMessage()); // Catch all other IOExceptions and throw as OpenStackConnectException throw new OpenStackConnectException(e.getMessage()); } |