Merge pull request #1361 from ppluciennik/ppluciennik/flush_log

Flush changes into .ninja_log right away.