mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 15:45:38 +00:00
4bde9fbcaa
By default, the standard library log package outputs to stderr. However, stderr is redirected through a pipe to the Android logger, so recent writes may be not have been sent when os.Exit is called. The log.Fatal family of functions does just that: write to the log and call os.Exit. To ensure all messages are sent, register a synchronized logger at startup. Signed-off-by: Elias Naur <mail@eliasnaur.com>