From 8f9d8f1154e088fb2893063169098dc2a36ab73b Mon Sep 17 00:00:00 2001 From: Santiago Date: Thu, 18 Sep 2025 12:07:16 +0200 Subject: [PATCH] Remote Alertmanager: Fix log line in the Mimir client (#111293) --- pkg/services/ngalert/remote/client/mimir.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/services/ngalert/remote/client/mimir.go b/pkg/services/ngalert/remote/client/mimir.go index 36a42f364ea..6e19d5eb65f 100644 --- a/pkg/services/ngalert/remote/client/mimir.go +++ b/pkg/services/ngalert/remote/client/mimir.go @@ -149,7 +149,7 @@ func (mc *Mimir) do(ctx context.Context, p, method string, payload io.Reader, ou if err != nil { bodyStr = fmt.Sprintf("fail_to_read: %s", err) } - mc.logger.Error(msg, "content-type", "url", r.URL.String(), "method", r.Method, ct, "status", resp.StatusCode, "body", bodyStr) + mc.logger.Error(msg, "content-type", ct, "url", r.URL.String(), "method", r.Method, "status", resp.StatusCode, "body", bodyStr) return nil, fmt.Errorf("%s: %s", msg, ct) }