Skip to content

Commit

Permalink
SAK-26157 Don't expected errors as errors in the logs
Browse files Browse the repository at this point in the history
git-svn-id: https://source.sakaiproject.org/svn/access/trunk@308869 66ffb92e-73f9-0310-93c1-f5514f145a0a
  • Loading branch information
buckett committed Apr 28, 2014
1 parent d6baff8 commit 6d1030a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ public SecurityAdvice isAllowed(String userId, String function, String reference
catch (EntityNotDefinedException e)
{
// the request was not valid in some way
M_log.error("dispatch(): ref: " + ref.getReference() + e);
M_log.debug("dispatch(): ref: " + ref.getReference(), e);
sendError(res, HttpServletResponse.SC_NOT_FOUND);
return;
}
Expand All @@ -358,13 +358,13 @@ public SecurityAdvice isAllowed(String userId, String function, String reference
}

// otherwise reject the request
M_log.error("dispatch(): ref: " + ref.getReference() + e);
M_log.debug("dispatch(): ref: " + ref.getReference(), e);
sendError(res, HttpServletResponse.SC_FORBIDDEN);
}

catch (EntityAccessOverloadException e)
{
M_log.info("dispatch(): ref: " + ref.getReference() + e);
M_log.info("dispatch(): ref: " + ref.getReference(), e);
sendError(res, HttpServletResponse.SC_SERVICE_UNAVAILABLE);
}

Expand Down

0 comments on commit 6d1030a

Please sign in to comment.