alertmanager/api/v2
Simon Pasquier e0cc523893
api/v2: add path and method to API v2 logs (#2261)
* api/v2: add path and method to API v2 logs

When an API v2 handler logged a message, the log wouldn't include the
path and method. Since different handlers perform the same validations
(e.g. matchers for alerts and silences), it isn't easy to know which
handler was invoked (though the logged filename
+ line number provides a hint).

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Capitalize messages + improve logs

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2020-06-02 16:13:31 +02:00
..
client *: bump Open API dependencies (#2024) 2019-09-09 10:57:38 +02:00
models api/v2: return empty array of peers when disabled (#2203) 2020-03-10 15:47:43 +01:00
restapi api/v2: return empty array of peers when disabled (#2203) 2020-03-10 15:47:43 +01:00
api.go api/v2: add path and method to API v2 logs (#2261) 2020-06-02 16:13:31 +02:00
api_test.go api/v2: return empty array of peers when disabled (#2203) 2020-03-10 15:47:43 +01:00
openapi.yaml api/v2: return empty array of peers when disabled (#2203) 2020-03-10 15:47:43 +01:00