More [minor] refactoring. (FELIX-851)


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@739465 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/searchpolicy/ModuleImpl.java b/framework/src/main/java/org/apache/felix/framework/searchpolicy/ModuleImpl.java
index 1e63832..ad157ee 100644
--- a/framework/src/main/java/org/apache/felix/framework/searchpolicy/ModuleImpl.java
+++ b/framework/src/main/java/org/apache/felix/framework/searchpolicy/ModuleImpl.java
@@ -441,15 +441,6 @@
             {
                 return getClassLoader().loadClass(name);
             }
-            catch (ClassNotFoundException ex)
-            {
-// TODO: REFACTOR - Should this log?
-                m_logger.log(
-                    Logger.LOG_WARNING,
-                    ex.getMessage(),
-                    ex);
-                throw ex;
-            }
             finally
             {
                 pkgCycleSet.remove(name);
@@ -475,10 +466,14 @@
             }
             catch (ClassNotFoundException ex)
             {
+                // This should never be thrown because we are loading resources.
             }
             catch (ResourceNotFoundException ex)
             {
-// TODO: REFACTOR - Should this log?
+                m_logger.log(
+                    Logger.LOG_DEBUG,
+                    ex.getMessage(),
+                    ex);
             }
             finally
             {