Skip to content

Commit

Permalink
Merge pull request #6029 from eclipse/jetty-10.0.x-6026-cleanup-uncov…
Browse files Browse the repository at this point in the history
…ered-path-warning

Issue #6026 - Cleaning up warning for paths with uncovered HTTP methods
  • Loading branch information
joakime committed Mar 9, 2021
2 parents c2181ec + 74ecf36 commit 54dfa26
Showing 1 changed file with 2 additions and 8 deletions.
Expand Up @@ -741,14 +741,8 @@ public boolean checkPathsWithUncoveredHttpMethods()
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;
Expand Down

0 comments on commit 54dfa26

Please sign in to comment.