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

TermLogger: Flush each entry #82

Merged
merged 1 commit into from Sep 27, 2021
Merged

TermLogger: Flush each entry #82

merged 1 commit into from Sep 27, 2021

Commits on Sep 27, 2021

  1. TermLogger: Flush each entry

    The log crate holds the logger as a `static mut` reference
    which isn't dropped at program exit:
    https://doc.rust-lang.org/reference/items/static-items.html
    Sadly, this means we can't rely on the BufferedStandardStreams flushing
    themselves on the way out, so to avoid the Case of the Missing 8k,
    flush each entry.
    
    Fixes Drakulix#80
    mrkline committed Sep 27, 2021
    Copy the full SHA
    523355a View commit details
    Browse the repository at this point in the history