Skip to content

Commit

Permalink
428904 Add logging of which webapp has path with uncovered http methods
Browse files Browse the repository at this point in the history
  • Loading branch information
janbartel committed Apr 28, 2014
1 parent 703deea commit b186d3e
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -45,6 +45,7 @@
import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.Response;
import org.eclipse.jetty.server.UserIdentity;
import org.eclipse.jetty.server.handler.ContextHandler;
import org.eclipse.jetty.util.log.Log;
import org.eclipse.jetty.util.log.Logger;
import org.eclipse.jetty.util.security.Constraint;
Expand Down Expand Up @@ -820,7 +821,9 @@ public boolean checkPathsWithUncoveredHttpMethods()
if (paths != null && !paths.isEmpty())
{
for (String p:paths)
LOG.warn("Path with uncovered http methods: {}",p);
LOG.warn("{} has uncovered http methods for path: {}",ContextHandler.getCurrentContext(), p);
if (LOG.isDebugEnabled())
LOG.debug(new Throwable());
return true;
}
return false;
Expand Down

0 comments on commit b186d3e

Please sign in to comment.