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

Don't log errors on normal connection closing #206

Merged
merged 1 commit into from
Apr 10, 2023

Conversation

jonstacks
Copy link
Collaborator

@jonstacks jonstacks commented Apr 6, 2023

What

Small logging fix. Previously we'd have error logs for connections being closed when one of the 2 go routine's connections was closed under normal circumstances. This isn't really an error and just pollutes logs when logging at error level and above. We should log these normal connection closings with info level.

How

If the error is nil or a is a net.ErrClosed error, just log the normal connection closed

Breaking Changes

No

@jonstacks jonstacks requested a review from a team as a code owner April 6, 2023 06:59
@jonstacks jonstacks added the bug Something isn't working label Apr 6, 2023
@github-actions github-actions bot added the area/controller Issues dealing with the controller label Apr 6, 2023
@jonstacks jonstacks self-assigned this Apr 6, 2023
@jonstacks jonstacks merged commit fbc1dd5 into ngrok:main Apr 10, 2023
@jonstacks jonstacks deleted the closed-connection-logging branch April 10, 2023 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/controller Issues dealing with the controller bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants