ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1347609 - /ace/trunk/ace-gateway-log/src/main/java/org/apache/ace/target/log/task/LogSyncTask.java
Date Thu, 07 Jun 2012 13:33:53 GMT
Author: jawi
Date: Thu Jun  7 13:33:51 2012
New Revision: 1347609

URL: http://svn.apache.org/viewvc?rev=1347609&view=rev
Log:
Make it clear when a target is unable to connect to the server.

Modified:
    ace/trunk/ace-gateway-log/src/main/java/org/apache/ace/target/log/task/LogSyncTask.java

Modified: ace/trunk/ace-gateway-log/src/main/java/org/apache/ace/target/log/task/LogSyncTask.java
URL: http://svn.apache.org/viewvc/ace/trunk/ace-gateway-log/src/main/java/org/apache/ace/target/log/task/LogSyncTask.java?rev=1347609&r1=1347608&r2=1347609&view=diff
==============================================================================
--- ace/trunk/ace-gateway-log/src/main/java/org/apache/ace/target/log/task/LogSyncTask.java
(original)
+++ ace/trunk/ace-gateway-log/src/main/java/org/apache/ace/target/log/task/LogSyncTask.java
Thu Jun  7 13:33:51 2012
@@ -24,6 +24,7 @@ import java.io.IOException;
 import java.io.InputStream;
 import java.io.InputStreamReader;
 import java.io.OutputStreamWriter;
+import java.net.ConnectException;
 import java.net.HttpURLConnection;
 import java.net.URL;
 import java.net.URLConnection;
@@ -98,6 +99,9 @@ public class LogSyncTask implements Runn
             // Make sure to send the actual POST request...
             sendConnection.getContent();
         }
+        catch (ConnectException e) {
+            m_log.log(LogService.LOG_WARNING, "Unable to connect to remote (endpoint=" +
m_endpoint + ")");
+        }
         catch (IOException e) {
             m_log.log(LogService.LOG_ERROR, "Unable to (fully) synchronize log with remote
(endpoint=" + m_endpoint + ")", e);
         }



Mime
View raw message