Truncate logs when persisting records

#11