Force flush() of logging output stream

Logging was not actually performing any flush, so the logs would not get updated until termination.
I tend to `tail -f debug_log.log` so the lack of flush()ing made that useless.