I updated question for clarity (as requested).
I use Buffalo framework. I have lots of messages in logs informing that someone on the internet tries to reach nonexistent endpoint or uses HTTP method that is not supported by the service. I think, these messages originates from Buffalo's router (definitely not from my code). Here is an example of a message: "method not found: HEAD /some/path".
Question: how I can change priority of these messages from "error" to "notice" or "info". In my opinion, an such a hi priority is a bad choice for messages that indicates errors on client side, and not in my code.
Original content:
Why messages like "method not found: HEAD /some/path" are logged with an "error" priority? How can I change the priority to "notice" or "info" for that kind of messages? Reason: I don't like being woken up every time some kiddie on the internet tries new script on my site.
Here is my router configuration:
app.GET("/{path:.+}", fs)
app.GET("/", fs)
fs
is regular http.Handler
wrapped using buffalo.WrapHandler()
.