moby / vpnkit

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

logger: guarantee to flush the logs on exit #601

Closed djs55 closed 1 year ago

djs55 commented 1 year 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