felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r747125 - /felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/obr/DeployerThread.java
Date Mon, 23 Feb 2009 20:17:08 GMT
Author: fmeschbe
Date: Mon Feb 23 20:17:08 2009
New Revision: 747125

URL: http://svn.apache.org/viewvc?rev=747125&view=rev
Log:
FELIX-956 Use requirement filter in the log message for failed
resolution if there is on requirement comment

Modified:
    felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/obr/DeployerThread.java

Modified: felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/obr/DeployerThread.java
URL: http://svn.apache.org/viewvc/felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/obr/DeployerThread.java?rev=747125&r1=747124&r2=747125&view=diff
==============================================================================
--- felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/obr/DeployerThread.java
(original)
+++ felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/obr/DeployerThread.java
Mon Feb 23 20:17:08 2009
@@ -97,7 +97,12 @@
         logger.log( LogService.LOG_ERROR, message );
         for ( int i = 0; req != null && i < req.length; i++ )
         {
-            logger.log( LogService.LOG_ERROR, "  " + i + ": " + req[i].getName() + " (" +
req[i].getComment() + ")" );
+            String moreInfo = req[i].getComment();
+            if ( moreInfo == null )
+            {
+                moreInfo = req[i].getFilter().toString();
+            }
+            logger.log( LogService.LOG_ERROR, "  " + i + ": " + req[i].getName() + " (" +
moreInfo + ")" );
         }
     }
 



Mime
View raw message