From 683e110cccf929388b5a0bf3ef36c8fe603c3b8e Mon Sep 17 00:00:00 2001 From: slaws Date: Mon, 4 Oct 2010 16:32:06 +0000 Subject: Add more info about where bundles are coming from and what bundles are causing problems. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1004317 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca/extensibility/equinox/EquinoxServiceDiscoverer.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sca-java-2.x/trunk/modules/extensibility-equinox/src/main') diff --git a/sca-java-2.x/trunk/modules/extensibility-equinox/src/main/java/org/apache/tuscany/sca/extensibility/equinox/EquinoxServiceDiscoverer.java b/sca-java-2.x/trunk/modules/extensibility-equinox/src/main/java/org/apache/tuscany/sca/extensibility/equinox/EquinoxServiceDiscoverer.java index 97b4a7696b..122729a2a4 100644 --- a/sca-java-2.x/trunk/modules/extensibility-equinox/src/main/java/org/apache/tuscany/sca/extensibility/equinox/EquinoxServiceDiscoverer.java +++ b/sca-java-2.x/trunk/modules/extensibility-equinox/src/main/java/org/apache/tuscany/sca/extensibility/equinox/EquinoxServiceDiscoverer.java @@ -288,17 +288,17 @@ public class EquinoxServiceDiscoverer implements ServiceDiscoverer { if (urls == null) { URL entry = bundle.getEntry(serviceName); if (entry != null) { - logger.warning("Unresolved resource " + serviceName + " found in " + toString(bundle)); + logger.warning("Unresolved resource " + serviceName + " found in bundle: " + toString(bundle)); try { bundle.start(); } catch (BundleException e) { - logger.log(Level.SEVERE, e.getMessage(), e); + logger.log(Level.SEVERE, "Bundle: " + bundle.getSymbolicName() + " - " + e.getMessage(), e); } // urls = Collections.enumeration(Arrays.asList(entry)); } } } catch (IOException e) { - logger.log(Level.SEVERE, e.getMessage(), e); + logger.log(Level.SEVERE, "Bundle: " + bundle.getSymbolicName() + " - " + e.getMessage(), e); } if (urls == null) { continue; @@ -322,7 +322,7 @@ public class EquinoxServiceDiscoverer implements ServiceDiscoverer { descriptors.add(descriptor); } } catch (IOException e) { - logger.log(Level.SEVERE, e.getMessage(), e); + logger.log(Level.SEVERE, "Bundle: " + bundle.getSymbolicName() + " - " + e.getMessage(), e); } } } -- cgit v1.2.3