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

Only log INFO messages from websockets #8165

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

berland
Copy link
Contributor

@berland berland commented Jun 17, 2024

Issue
Resolves #8161
Resolves speed issue for Ert, according to @JHolba excessive time is spent by websocket.serve() due to logging.

Approach
✂️

  • PR title captures the intent of the changes, and is fitting for release notes.
  • Added appropriate release note label
  • Commit history is consistent and clean, in line with the contribution guidelines.
  • Make sure tests pass locally (after every commit!)

When applicable

  • When there are user facing changes: Updated documentation
  • New behavior or changes to existing untested code: Ensured that unit tests are added (See Ground Rules).
  • Large PR: Prepare changes in small commits for more convenient review
  • Bug fix: Add regression test for the bug
  • Bug fix: Create Backport PR to latest release

@berland berland changed the title Tune websocket log level Only log INFO messages from websockets Jun 17, 2024
@berland berland added the release-notes:misc Automatically categorise as miscellaneous change in release notes label Jun 17, 2024
By going from logging DEBUG messages to INFO and above, we shave 95% off the log
size when doing the poly-example. Logging has been proven to be a bottleneck
so this change could actually improve perceived application speed.

Not opting to filter out INFO as well for the moment, meaning we will still log
whenever the connection is closed and reopened (which we don't want to happen
so it makes sense to log it).
@berland berland force-pushed the tune-websocket-log-level branch from 7353650 to 1a9dc6c Compare June 17, 2024 11:26
@berland berland enabled auto-merge (rebase) June 17, 2024 11:26
Copy link
Contributor

@xjules xjules left a comment

Choose a reason for hiding this comment

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

Smooth 🚀

@berland berland merged commit 03b296d into equinor:main Jun 17, 2024
38 checks passed
@berland berland deleted the tune-websocket-log-level branch August 23, 2024 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes:misc Automatically categorise as miscellaneous change in release notes
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Improve websockets logging
2 participants