jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r1239824 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemSaveOperation.java
Date Thu, 02 Feb 2012 20:42:16 GMT
Author: stefan
Date: Thu Feb  2 20:42:15 2012
New Revision: 1239824

URL: http://svn.apache.org/viewvc?rev=1239824&view=rev
Log:
only log full stack trace if debug is enabled

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemSaveOperation.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemSaveOperation.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemSaveOperation.java?rev=1239824&r1=1239823&r2=1239824&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemSaveOperation.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemSaveOperation.java
Thu Feb  2 20:42:15 2012
@@ -892,7 +892,11 @@ class ItemSaveOperation implements Sessi
                 // something went wrong, log exception and carry on
                 String msg = itemMgr.safeGetJCRPath(id)
                     + ": failed to restore transient state";
-                log.warn(msg, re);
+                if (log.isDebugEnabled()) {
+                    log.warn(msg, re);
+                } else {
+                    log.warn(msg);
+                }
             }
         }
     }



Mime
View raw message