• spiiroin's avatar
    [logging] Flush output streams relevant for logging · c9055d07
    spiiroin authored
    Mixed use of syslog, stdout, stderr and differences in buffering of
    the streams causes the initial "starting up" message to end up as the
    final output in usb-moded journal when debug level logging is used
    (i.e. when freopen steps are skipped and stdout is not implicitly
    flushed).
    
    Use stderr and flush it before potentially switching to syslog logging.
    Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
    c9055d07
Name
Last commit
Last update
config Loading commit data...
debian Loading commit data...
docs Loading commit data...
openembedded Loading commit data...
rpm Loading commit data...
src Loading commit data...
systemd Loading commit data...
utils Loading commit data...
.gitignore Loading commit data...
Copyright Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
README.md Loading commit data...
TODO Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
usb-moded.ini Loading commit data...
usb_moded.pc.in Loading commit data...