Trim the log