Skip to content

Commit

Permalink
fix(pkg/github): improve rate limit log output
Browse files Browse the repository at this point in the history
  • Loading branch information
jlevesy committed Feb 13, 2024
1 parent eaaaadb commit 66889cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/github/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ func NewClient(ctx context.Context, token string, logger *zap.Logger) (*github.C
func(ctx *github_ratelimit.CallbackContext) {
logger.Error(
"Detected ratelimit, all calls are currently held",
zap.Any("context", ctx),
zap.Any("sleep-until", ctx.SleepUntil),
zap.Any("total-sleep-time", ctx.TotalSleepTime),
)
},
),
Expand Down

0 comments on commit 66889cd

Please sign in to comment.