@@ -262,12 +262,12 @@ func (c *Client) Send(ctx context.Context, endpoint string, source Source) error
262
262
counterRequestSend .WithLabelValues (c .metricsName , strconv .Itoa (resp .StatusCode )).Inc ()
263
263
264
264
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 )
266
266
return authorizer.Error {Err : fmt .Errorf ("your Red Hat account is not enabled for remote support or your token has expired: %s" , responseBody (resp ))}
267
267
}
268
268
269
269
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 )
271
271
return authorizer.Error {Err : fmt .Errorf ("your Red Hat account is not enabled for remote support" )}
272
272
}
273
273
@@ -280,7 +280,7 @@ func (c *Client) Send(ctx context.Context, endpoint string, source Source) error
280
280
}
281
281
282
282
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 )
284
284
}
285
285
286
286
return nil
0 commit comments