clean up the log