mirror of
https://github.com/google/nomulus.git
synced 2025-07-12 22:18:12 +02: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:
parent
6e10e24d2f
commit
5520329385
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue