cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject svn commit: r1517963 - /cxf/dosgi/trunk/dsw/cxf-topology-manager/src/main/java/org/apache/cxf/dosgi/topologymanager/importer/TopologyManagerImport.java
Date Tue, 27 Aug 2013 20:06:38 GMT
Author: cschneider
Date: Tue Aug 27 20:06:38 2013
New Revision: 1517963

URL: http://svn.apache.org/r1517963
Log:
Add logging if importing a service goes wrong

Modified:
    cxf/dosgi/trunk/dsw/cxf-topology-manager/src/main/java/org/apache/cxf/dosgi/topologymanager/importer/TopologyManagerImport.java

Modified: cxf/dosgi/trunk/dsw/cxf-topology-manager/src/main/java/org/apache/cxf/dosgi/topologymanager/importer/TopologyManagerImport.java
URL: http://svn.apache.org/viewvc/cxf/dosgi/trunk/dsw/cxf-topology-manager/src/main/java/org/apache/cxf/dosgi/topologymanager/importer/TopologyManagerImport.java?rev=1517963&r1=1517962&r2=1517963&view=diff
==============================================================================
--- cxf/dosgi/trunk/dsw/cxf-topology-manager/src/main/java/org/apache/cxf/dosgi/topologymanager/importer/TopologyManagerImport.java
(original)
+++ cxf/dosgi/trunk/dsw/cxf-topology-manager/src/main/java/org/apache/cxf/dosgi/topologymanager/importer/TopologyManagerImport.java
Tue Aug 27 20:06:38 2013
@@ -291,9 +291,13 @@ public class TopologyManagerImport imple
     private ImportRegistration importService(EndpointDescription endpoint) {
         for (RemoteServiceAdmin rsa : remoteServiceAdminTracker.getAllServices()) {
             ImportRegistration ir = rsa.importService(endpoint);
-            if (ir != null && ir.getException() == null) {
-                LOG.debug("Service import was successful {}", ir);
-                return ir;
+            if (ir != null) {
+                if (ir.getException() == null) {
+                    LOG.debug("Service import was successful {}", ir);
+                    return ir;
+                } else {
+                    LOG.info("Error importing service " + endpoint, ir.getException());
+                }
             }
         }
         return null;



Mime
View raw message