flush on every write (else log is empty...)
Merge branch 'master' into events