forked from joejulian/gio
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>