Make sure that with the code in this snippet, the log always gets saved.