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

EOF error logging with lower verbosity level #165

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

SandraRodgers
Copy link
Contributor

Proposed changes

This change handles an EOF condition more gracefully in the live.Stream() function by logging it with a lower verbosity level (V(4)) rather than treating it as a regular error (V(1)).

Instead of:
klog.V(1).Infof("r.Read failed. Err: %v\n", err)

It logs:
klog.V(4).Infof("r.Read encountered EOF. Err: %v\n", err)

@SandraRodgers SandraRodgers force-pushed the sr/fix-logging-error-for-EOF branch from 3c6e7e5 to 77433f8 Compare January 19, 2024 21:31
@SandraRodgers SandraRodgers merged commit 91d3a24 into main Jan 19, 2024
1 check passed
@davidvonthenen davidvonthenen deleted the sr/fix-logging-error-for-EOF branch November 5, 2024 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants