Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add loggers for ephemeral errors #1876

Closed
wants to merge 1 commit into from
Closed

Conversation

Tristan-Wilson
Copy link
Member

These loggers can be set up to log to one underlying logging function if if the time or count threshold since the first time it was logged with has not yet been reached, and another log function for if the threshold has been reached. An example use case would be to log a message at Debug level, until the same message has been seen 5 times, or for 1 minute, after which it would be logged at Error level until reset.

These loggers can be set up to log to one underlying logging function if
if the time or count threshold since the first time it was logged with
has not yet been reached, and another log function for if the threshold
has been reached. An example use case would be to log a message at Debug
level, until the same message has been seen 5 times, or for 1 minute,
after which it would be logged at Error level until reset.
@cla-bot cla-bot bot added the s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA. label Sep 21, 2023
daWriter das.DataAvailabilityServiceWriter
dataPoster *dataposter.DataPoster
redisLock *redislock.Simple
batchPostErrorLogger ephemeralerror.Logger
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's already part of the BatchPoster struct, how about just errorLogger?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants