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

Suppress logging of repeating errors when retrying automatically #1013

Closed
wants to merge 1 commit into from

Conversation

tleedjarv
Copy link
Contributor

This patch improves the logging in case of automatic retry in repeat mode, which is one of the issues pointed out in #996.

Repeating messages are suppressed only in the log, not on stdout when run interactively.

Easiest reviewed commit by commit.

Retrying on an error that is not permanent but may last for a long time,
for hundreds or even thousands of attempts (for example, connection
refused, one of the roots not mounted), it is unnecessary to spam the
log with the same error every time.
@gdt gdt added the discuss way forward is unclear; needs discussion of approach to take and why label Apr 26, 2024
@gdt
Copy link
Collaborator

gdt commented Apr 26, 2024

retry mode is complicated and has a lot of issues. For now, I have decided that I don't want to suppress errors, and that instead people who are concerned about too many errors in the log should instead reduce the rate of errors happening. This may well take a great deal of stepping back and reconsidering many things, but that's ok with me.

@gdt gdt added the DRAFT PR is not ready to merge label Apr 26, 2024
@tleedjarv
Copy link
Contributor Author

I agree, this PR no longer makes sense.

@tleedjarv tleedjarv closed this Apr 26, 2024
@tleedjarv tleedjarv deleted the fix-996 branch April 26, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss way forward is unclear; needs discussion of approach to take and why DRAFT PR is not ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants