Make sure that with the code in this snippet, the log always gets saved.
Merged pull request #798