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

Make logging to file opt-in #1946

Merged
merged 3 commits into from
Dec 10, 2023
Merged

Make logging to file opt-in #1946

merged 3 commits into from
Dec 10, 2023

Conversation

bugadani
Copy link
Contributor

@bugadani bugadani commented Dec 10, 2023

This PR turns of file logging by default. It is slow, generates extreme amounts of data and apparently rarely used. Logging to file can now be enabled by two ways:

  • by providing the --log-file <some path> switch
  • or by setting --log-to-folder (name pending, feel free to suggest a better one!) in which case the logs are generated into the previously default folder.

If logging to file is used, probe-rs now uses tracing_appender::non_blocking to avoid waiting on file IO if possible.

@MabezDev
Copy link
Member

From 50KB/s flashing to 200KB/s on an esp32c6.... 🤯. I also tested the one ARM board I have around, an stm32f2 and that got a nice 10KB/s bump too!

@Yatekii Yatekii added this pull request to the merge queue Dec 10, 2023
Merged via the queue into probe-rs:master with commit 40a041a Dec 10, 2023
17 checks passed
@bugadani bugadani deleted the log branch December 10, 2023 21:44
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.

3 participants