moby / vpnkit

A toolkit for embedding VPN capabilities in your application
Apache License 2.0
1.11k stars 190 forks source link

logger: guarantee to flush the logs on exit #601

Closed djs55 closed 2 years ago

djs55 commented 2 years ago

Previously the logging was async, so there could be logs in the buffer when the program quits (especially if it fails unexpectedly)

Signed-off-by: David Scott dave@recoil.org