incubator-directmemory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1331407 - /incubator/directmemory/trunk/server/directmemory-server-client/src/main/java/org/apache/directmemory/server/client/DirectMemoryClientBuilder.java
Date Fri, 27 Apr 2012 12:57:29 GMT
Author: olamy
Date: Fri Apr 27 12:57:28 2012
New Revision: 1331407

URL: http://svn.apache.org/viewvc?rev=1331407&view=rev
Log:
log why dynamic configuration has failed

Modified:
    incubator/directmemory/trunk/server/directmemory-server-client/src/main/java/org/apache/directmemory/server/client/DirectMemoryClientBuilder.java

Modified: incubator/directmemory/trunk/server/directmemory-server-client/src/main/java/org/apache/directmemory/server/client/DirectMemoryClientBuilder.java
URL: http://svn.apache.org/viewvc/incubator/directmemory/trunk/server/directmemory-server-client/src/main/java/org/apache/directmemory/server/client/DirectMemoryClientBuilder.java?rev=1331407&r1=1331406&r2=1331407&view=diff
==============================================================================
--- incubator/directmemory/trunk/server/directmemory-server-client/src/main/java/org/apache/directmemory/server/client/DirectMemoryClientBuilder.java
(original)
+++ incubator/directmemory/trunk/server/directmemory-server-client/src/main/java/org/apache/directmemory/server/client/DirectMemoryClientBuilder.java
Fri Apr 27 12:57:28 2012
@@ -22,6 +22,8 @@ import org.apache.directmemory.serializa
 import org.apache.directmemory.server.client.providers.httpclient.HttpClientDirectMemoryHttpClient;
 import org.apache.directmemory.server.commons.DirectMemoryException;
 import org.apache.directmemory.server.commons.ExchangeType;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * @author Olivier Lamy
@@ -31,6 +33,8 @@ public class DirectMemoryClientBuilder
 
     public static final String DEFAULT_HTTP_CLIENT_INSTANCE = HttpClientDirectMemoryHttpClient.class.getName();
 
+    private Logger log = LoggerFactory.getLogger( getClass() );
+
     private DirectMemoryClientConfiguration configuration;
 
     protected DirectMemoryClientBuilder()
@@ -129,6 +133,7 @@ public class DirectMemoryClientBuilder
         }
         catch ( Throwable t1 )
         {
+            log.warn( "fail to use configured http client: {} use defautl one", t1.getMessage()
);
             try
             {
                 // we try with an other class



Mime
View raw message