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

tech: Reduce amount of logs written to disk #2356

Merged
merged 2 commits into from
Oct 30, 2024
Merged

Conversation

taratatach
Copy link
Member

@taratatach taratatach commented Oct 30, 2024

Since logging often decreases app performance, we reduce the amount of
lines we write in normal conditions by changing the level of logging
statement called often to debug or trace and changing the level of
written lines to info.
We also make sure important information is logged with the info
level at the minimum so they get written.

Since we decrease the amount of logs written to disk, we might miss some
important information to help debug user issues and thus add the
possibility to re-enable trace level logging via a (remote) flag.

Please make sure the following boxes are checked:

  • PR is not too big
  • it improves UX & DX in some way
  • it includes unit tests matching the implementation changes
  • it includes scenarios matching a new behaviour or has been manually tested
  • it includes relevant documentation

@taratatach taratatach self-assigned this Oct 30, 2024
@taratatach taratatach changed the title fix: Require flags in GUI via Electron remote tech: Reduce amount of logs written to disk Oct 30, 2024
@taratatach taratatach force-pushed the tech/remove-some-logs branch 2 times, most recently from 976fb83 to 813ff8b Compare October 30, 2024 14:56
Base automatically changed from fix/require-flags-module-in-gui-via-electron-remote to master October 30, 2024 15:29
  Since logging often decreases app performance, we reduce the amount of
  lines we write in normal conditions by changing the level of logging
  statement called often to `debug` or `trace` and changing the level of
  written lines to `info`.
  We also make sure important information is logged with the `info`
  level at the minimum so they get written.
  Since we've decreased the amount of logs written to disk, we might
  miss some important information to help debug user issues.

  By allowing to re-enable `trace` level logging via a (remote) flag, we
  give ourselves a chance to get more details about long standing
  issues.
@taratatach taratatach merged commit 104f0ae into master Oct 30, 2024
9 of 16 checks passed
@taratatach taratatach deleted the tech/remove-some-logs branch October 30, 2024 15:30
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