Skip to content

Commit 0063223

Browse files
committed
add more log when clb api request limit exceeded
Signed-off-by: roc <roc@imroc.cc>
1 parent 89801c8 commit 0063223

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/clb/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func ApiCall[Req, Res any](ctx context.Context, apiName, region string, doReq fu
2929
reqCount++
3030
if err != nil {
3131
if IsRequestLimitExceededError(err) { // 云 API 限频,重试
32-
log.FromContext(ctx).V(3).Info("clb api request limit exceeded")
32+
log.FromContext(ctx).V(3).Info("clb api request limit exceeded", "api", apiName, "err", err)
3333
select { // context 撤销,不继续重试
3434
case <-ctx.Done():
3535
return res, err

0 commit comments

Comments
 (0)