Skip to content
This repository
Browse code

remove sysout

  • Loading branch information...
commit 193d73991637e544876a71ad6f56cafc3879f578 1 parent aab8129
Christophe Hamerling chamerling authored
13 modules/dsb-service-asynchttpclient/src/main/java/org/ow2/petals/dsb/service/client/asynchttp/Client.java
... ... @@ -1,5 +1,8 @@
1 1 package org.ow2.petals.dsb.service.client.asynchttp;
2 2
  3 +import java.util.logging.Level;
  4 +import java.util.logging.Logger;
  5 +
3 6 import javax.xml.namespace.QName;
4 7
5 8 import org.petalslink.dsb.saaj.utils.SOAPMessageUtils;
@@ -20,6 +23,8 @@
20 23 public class Client implements org.petalslink.dsb.service.client.Client {
21 24
22 25 private AsyncHttpClient client;
  26 +
  27 + private static Logger logger = Logger.getLogger(Client.class.getName());
23 28
24 29 /**
25 30 *
@@ -61,8 +66,10 @@ public Response onCompleted(Response response)
61 66
62 67 @Override
63 68 public void onThrowable(Throwable t) {
64   - System.out.println("Failto send message to "
  69 + if (logger.isLoggable(Level.WARNING)) {
  70 + logger.warning("Fail to send message to "
65 71 + message.getEndpoint());
  72 + }
66 73 }
67 74 });
68 75 } catch (Exception e) {
@@ -144,8 +151,10 @@ public Response onCompleted(Response response)
144 151
145 152 @Override
146 153 public void onThrowable(Throwable t) {
147   - System.out.println("Failto send message to "
  154 + if (logger.isLoggable(Level.WARNING)) {
  155 + logger.warning("Fail to send message to "
148 156 + message.getEndpoint());
  157 + }
149 158 if (listener != null) {
150 159 listener.onError(t);
151 160 }

0 comments on commit 193d739

Please sign in to comment.
Something went wrong with that request. Please try again.