ACE-4734 - minor: add optional info/debug logging for CMIS calls (to get/list object/objects)

- relates to ACE-198 & ACE-202

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@118471 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2015-11-24 16:35:52 +00:00
parent 620e4d37d5
commit b6bf8f5e1c
2 changed files with 136 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2005-2013 Alfresco Software Limited.
* Copyright (C) 2005-2015 Alfresco Software Limited.
*
* This file is part of Alfresco
*
@@ -134,12 +134,13 @@ public class AlfrescoCmisServiceFactory extends AbstractServiceFactory
{
if (logger.isDebugEnabled())
{
logger.debug("\n" +
"CMIS getService(): \n" +
" Authenticated as: " + AuthenticationUtil.getFullyAuthenticatedUser() + "\n" +
" Running as: " + AuthenticationUtil.getRunAsUser() + "\n" +
" User: " + context.getUsername() + "\n" +
" Repo: " + context.getRepositoryId());
StringBuilder sb = new StringBuilder();
sb.append("getService: ").append(AuthenticationUtil.getFullyAuthenticatedUser())
.append(" [runAsUser=").append(AuthenticationUtil.getRunAsUser())
.append(",ctxUserName=").append(context.getUsername())
.append(",ctxRepoId=").append(context.getRepositoryId()).append("]");
logger.debug(sb.toString());
}
// Avoid using guest user if the user is provided in the context