Improved debugging in areas relating to the fix in r16226.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16228 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2009-09-11 19:59:59 +00:00
parent c78191eac2
commit 984f737f4f
2 changed files with 7 additions and 4 deletions

View File

@@ -255,7 +255,7 @@ public class AVMRemoteStore extends BaseRemoteStore
avmService.createFile(parts[0], parts[1], content); avmService.createFile(parts[0], parts[1], content);
if (logger.isDebugEnabled()) if (logger.isDebugEnabled())
logger.debug("AVMRemoteStore.createDocument() " + avmPath); logger.debug("AVMRemoteStore.createDocument() " + avmPath + " of size: " + avmService.lookup(-1, avmPath).getLength());
} }
catch (AccessDeniedException ae) catch (AccessDeniedException ae)
{ {
@@ -295,7 +295,7 @@ public class AVMRemoteStore extends BaseRemoteStore
writer.putContent(content); writer.putContent(content);
if (logger.isDebugEnabled()) if (logger.isDebugEnabled())
logger.debug("AVMRemoteStore.updateDocument() " + avmPath); logger.debug("AVMRemoteStore.updateDocument() " + avmPath + " of size: " + avmService.lookup(-1, avmPath).getLength());
} }
catch (AccessDeniedException ae) catch (AccessDeniedException ae)
{ {

View File

@@ -174,7 +174,6 @@ public abstract class BaseRemoteStore extends AbstractWebScript
// reset element // reset element
el = (tokenizer.hasMoreTokens() ? tokenizer.nextToken() : null); el = (tokenizer.hasMoreTokens() ? tokenizer.nextToken() : null);
} }
while (el != null) while (el != null)
@@ -268,11 +267,15 @@ public abstract class BaseRemoteStore extends AbstractWebScript
case CREATE: case CREATE:
validatePath(path); validatePath(path);
if (logger.isDebugEnabled())
logger.debug("CREATE: content length=" + httpReq.getContentLength());
createDocument(res, store, path, httpReq.getInputStream()); createDocument(res, store, path, httpReq.getInputStream());
break; break;
case UPDATE: case UPDATE:
validatePath(path); validatePath(path);
if (logger.isDebugEnabled())
logger.debug("CREATE: content length=" + httpReq.getContentLength());
updateDocument(res, store, path, httpReq.getInputStream()); updateDocument(res, store, path, httpReq.getInputStream());
break; break;