Clean up update_log function for readability
Fix removal of keys from view seq index