Author: max_shaposhnik
Date: 2010-02-05 07:37:39 -0500 (Fri, 05 Feb 2010)
New Revision: 1697
Modified:
ws/trunk/exo.ws.rest.ext/src/main/java/org/exoplatform/services/rest/ext/proxy/BaseConnector.java
Log:
EXOJCR-468 code style fixes
Modified:
ws/trunk/exo.ws.rest.ext/src/main/java/org/exoplatform/services/rest/ext/proxy/BaseConnector.java
===================================================================
---
ws/trunk/exo.ws.rest.ext/src/main/java/org/exoplatform/services/rest/ext/proxy/BaseConnector.java 2010-02-05
12:36:50 UTC (rev 1696)
+++
ws/trunk/exo.ws.rest.ext/src/main/java/org/exoplatform/services/rest/ext/proxy/BaseConnector.java 2010-02-05
12:37:39 UTC (rev 1697)
@@ -78,8 +78,8 @@
if (resp.getStatusCode() >= 300)
{
- System.err.println("Received Error: " + resp.getReasonLine());
- System.err.println(resp.getText());
+ LOG.error("Received Error: " + resp.getReasonLine());
+ LOG.error(resp.getText());
}
return resp;
}
@@ -103,8 +103,8 @@
resp = conn.Post(url_obj.getProtocol() + "://" +
url_obj.getAuthority() + url_obj.getPath(), body, headers);
if (resp.getStatusCode() >= 300)
{
- System.err.println("Received Error: " + resp.getReasonLine());
- System.err.println(resp.getText());
+ LOG.error("Received Error: " + resp.getReasonLine());
+ LOG.error(resp.getText());
}
return resp;
}
@@ -147,7 +147,7 @@
}
catch (ParseException e)
{
- System.err.println(e.getMessage());
+ LOG.error(e.getMessage());
}
}
}
Show replies by date