Log forbidden HTTP request method at warning (#983)

* Log forbidden HTTP request method at warning

This seems like more reasonable. It will potential issues with how
requests are generated more discoverable in the log.
This commit is contained in:
Lai Jiang 2021-03-03 21:02:06 -05:00 committed by GitHub
parent 6e10e24d2f
commit 5520329385

View file

@ -135,7 +135,7 @@ public class RequestHandler<C> {
return; return;
} }
if (!route.get().isMethodAllowed(method)) { if (!route.get().isMethodAllowed(method)) {
logger.atInfo().log("Method %s not allowed for: %s", method, path); logger.atWarning().log("Method %s not allowed for: %s", method, path);
rsp.sendError(SC_METHOD_NOT_ALLOWED); rsp.sendError(SC_METHOD_NOT_ALLOWED);
return; return;
} }