chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1576409 - /chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/server/AbstractCmisService.java
Date Tue, 11 Mar 2014 16:21:36 GMT
Author: fmui
Date: Tue Mar 11 16:21:36 2014
New Revision: 1576409

URL: http://svn.apache.org/r1576409
Log:
added tracing to getObjectInfo

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/server/AbstractCmisService.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/server/AbstractCmisService.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/server/AbstractCmisService.java?rev=1576409&r1=1576408&r2=1576409&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/server/AbstractCmisService.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/server/AbstractCmisService.java
Tue Mar 11 16:21:36 2014
@@ -67,9 +67,13 @@ import org.apache.chemistry.opencmis.com
 import org.apache.chemistry.opencmis.commons.server.ObjectInfoHandler;
 import org.apache.chemistry.opencmis.commons.server.RenditionInfo;
 import org.apache.chemistry.opencmis.commons.spi.Holder;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 public abstract class AbstractCmisService implements CmisService, ObjectInfoHandler {
 
+    private static final Logger LOG = LoggerFactory.getLogger(AbstractCmisService.class);
+
     private Map<String, ObjectInfo> objectInfoMap;
     private boolean addObjectInfos = true;
 
@@ -1061,6 +1065,11 @@ public abstract class AbstractCmisServic
                 addObjectInfo(info);
             } catch (Exception e) {
                 info = null;
+
+                if (LOG.isTraceEnabled()) {
+                    LOG.trace("Getting the object info for object " + objectId + " in repository
" + repositoryId
+                            + "  failed: " + e.toString(), e);
+                }
             } finally {
                 addObjectInfos = true;
             }



Mime
View raw message