mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Fixed major issues (Avoid Print Stack Trace) reported in Sonar
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@89719 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -215,8 +215,7 @@ public class RMAfterInvocationProvider extends RMSecurityCommon
|
|||||||
{
|
{
|
||||||
if (logger.isDebugEnabled())
|
if (logger.isDebugEnabled())
|
||||||
{
|
{
|
||||||
logger.debug("Access denied");
|
logger.debug("Access denied: " + ade.getMessage());
|
||||||
ade.printStackTrace();
|
|
||||||
}
|
}
|
||||||
throw ade;
|
throw ade;
|
||||||
}
|
}
|
||||||
@@ -224,8 +223,7 @@ public class RMAfterInvocationProvider extends RMSecurityCommon
|
|||||||
{
|
{
|
||||||
if (logger.isDebugEnabled())
|
if (logger.isDebugEnabled())
|
||||||
{
|
{
|
||||||
logger.debug("Access denied by runtime exception");
|
logger.debug("Access denied by runtime exception: " + re.getMessage());
|
||||||
re.printStackTrace();
|
|
||||||
}
|
}
|
||||||
throw re;
|
throw re;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user