Skip to content

How to stop the rate limit logging #405

Closed Answered by topi314
BlindAndInsane asked this question in Help
Discussion options

You must be logged in to vote

you can pass a logger with the level set to ERROR to the ratelimiter used by the webhook

webhook.NewWithURL(url,
	webhook.WithRestClientConfigOpts(
		rest.WithRateLimiterConfigOpts(
			rest.WithRateLimiterLogger(logger),
		),
	),
)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BlindAndInsane
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants