travisbrown / cancel-culture

Tools for fighting abuse on Twitter
Mozilla Public License 2.0
409 stars 30 forks source link

Flush loggers, etc. #28

Closed travisbrown closed 2 years ago

travisbrown commented 2 years ago

The new 0.10.1 release of simplelog buffers console output by default. We don't really need buffering for the sake of performance, and could probably switch to a non-buffering writer, but for now I just flush the logger at the end of each program. I've also made initialization failure (which seems pretty unlikely) fail fast.