Skip to content

Commit 928167e

Browse files
committed
Fix the order of params in the insightsclient
1 parent 7bc39e9 commit 928167e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: pkg/insights/insightsclient/insightsclient.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -262,12 +262,12 @@ func (c *Client) Send(ctx context.Context, endpoint string, source Source) error
262262
counterRequestSend.WithLabelValues(c.metricsName, strconv.Itoa(resp.StatusCode)).Inc()
263263

264264
if resp.StatusCode == http.StatusUnauthorized {
265-
klog.V(2).Infof("gateway server %s returned 401, %s=%s", insightsReqId, resp.Request.URL, requestID)
265+
klog.V(2).Infof("gateway server %s returned 401, %s=%s", resp.Request.URL, insightsReqId, requestID)
266266
return authorizer.Error{Err: fmt.Errorf("your Red Hat account is not enabled for remote support or your token has expired: %s", responseBody(resp))}
267267
}
268268

269269
if resp.StatusCode == http.StatusForbidden {
270-
klog.V(2).Infof("gateway server %s returned 403, %s=%s", insightsReqId, resp.Request.URL, requestID)
270+
klog.V(2).Infof("gateway server %s returned 403, %s=%s", resp.Request.URL, insightsReqId, requestID)
271271
return authorizer.Error{Err: fmt.Errorf("your Red Hat account is not enabled for remote support")}
272272
}
273273

@@ -280,7 +280,7 @@ func (c *Client) Send(ctx context.Context, endpoint string, source Source) error
280280
}
281281

282282
if len(requestID) > 0 {
283-
klog.V(2).Infof("Successfully reported id=%s %s=%s, wrote=%d", insightsReqId, source.ID, requestID, bytesRead)
283+
klog.V(2).Infof("Successfully reported id=%s %s=%s, wrote=%d", source.ID, insightsReqId, requestID, bytesRead)
284284
}
285285

286286
return nil

0 commit comments

Comments
 (0)