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:
commit
54dfa26a07
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue