Revision: 3294
http://openutils.svn.sourceforge.net/openutils/?rev=3294&view=rev
Author: fgiust
Date: 2011-01-28 14:12:53 +0000 (Fri, 28 Jan 2011)
Log Message:
-----------
better log (avoid stacktrace for known conditions)
Modified Paths:
--------------
trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/utils/JcrCompatUtils.java
Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/utils/JcrCompatUtils.java
===================================================================
--- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/utils/JcrCompatUtils.java 2011-01-24 22:11:35 UTC (rev 3293)
+++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/utils/JcrCompatUtils.java 2011-01-28 14:12:53 UTC (rev 3294)
@@ -61,7 +61,12 @@
}
catch (InvocationTargetException e)
{
- log.warn("Error extracting node from row", e.getTargetException());
+ log.warn("Error extracting node from row: {}", e.getTargetException() != null ? e
+ .getTargetException()
+ .getClass()
+ .getName()
+ + " "
+ + e.getTargetException().getMessage() : e.getMessage());
}
catch (NoSuchMethodException e)
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|