Merge pull request #6029 from eclipse/jetty-10.0.x-6026-cleanup-uncovered-path-warning

Issue #6026 - Cleaning up warning for paths with uncovered HTTP methods
This commit is contained in:
Joakim Erdfelt 2021-03-09 15:32:26 -06:00 committed by GitHub
commit 54dfa26a07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 8 deletions

View File

@ -741,14 +741,8 @@ public class ConstraintSecurityHandler extends SecurityHandler implements Constr
Set<String> paths = getPathsWithUncoveredHttpMethods();
if (paths != null && !paths.isEmpty())
{
ContextHandler.Context currentContext = ContextHandler.getCurrentContext();
for (String p : paths)
{
LOG.warn("{} has uncovered http methods for path: {}", currentContext, p);
}
if (LOG.isDebugEnabled())
LOG.debug("{} has uncovered http methods", currentContext, new Throwable());
LOG.warn("{} has uncovered HTTP methods for the following paths: {}",
ContextHandler.getCurrentContext(), paths);
return true;
}
return false;