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

Do not log errors #11

Merged
merged 1 commit into from
Oct 10, 2020
Merged

Do not log errors #11

merged 1 commit into from
Oct 10, 2020

Conversation

arl
Copy link
Owner

@arl arl commented Oct 10, 2020

There are 2 places in statsviz where errors can happen, in both we were logging them using log.
It's not ideal since not all users want that.
Furthermore these 2 logs were not particularly useful:

  • the first logged an error returned by websocket.Upgrade. However when that happens an HTTP error is already returned through the HTTP connection.
  • the second one is sendStats() that returned a possible write Error on the websocket.Conn. This happens each time the client (browser) is closed and so it's not really an error.

@arl arl merged commit 1380fc9 into master Oct 10, 2020
@arl arl deleted the do-not-log-errors branch October 10, 2020 21:55
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.

1 participant