mirror of
https://github.com/google/nomulus
synced 2026-01-11 00:10:36 +00:00
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:
@@ -135,7 +135,7 @@ public class RequestHandler<C> {
|
||||
return;
|
||||
}
|
||||
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);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user