jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r1178430 - /jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/ItemImpl.java
Date Mon, 03 Oct 2011 15:22:48 GMT
Author: stefan
Date: Mon Oct  3 15:22:48 2011
New Revision: 1178430

URL: http://svn.apache.org/viewvc?rev=1178430&view=rev
Log:
Item.save/.refresh: log warning instead of error

Modified:
    jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/ItemImpl.java

Modified: jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/ItemImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/ItemImpl.java?rev=1178430&r1=1178429&r2=1178430&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/ItemImpl.java
(original)
+++ jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/ItemImpl.java
Mon Oct  3 15:22:48 2011
@@ -195,13 +195,17 @@ public abstract class ItemImpl<STATE_TYP
 
     @Override
     public void save() throws RepositoryException {
-        log.error("Item.save ist not supported anymore. Redirecting to session.save", new
Exception("occurred here"));
+        if (log.isWarnEnabled()) {
+            log.warn("Item.save ist not supported anymore. Redirecting to session.save",
new Exception("occurred here"));
+        }
         session.save();
     }
 
     @Override
     public void refresh(boolean keepChanges) throws RepositoryException {
-        log.error("Item.refresh ist not supported anymore. Redirecting to session.refresh",
new Exception("occurred here"));
+        if (log.isWarnEnabled()) {
+            log.warn("Item.refresh ist not supported anymore. Redirecting to session.refresh",
new Exception("occurred here"));
+        }
         session.refresh(keepChanges);
     }
 



Mime
View raw message