def _LogUpdate(self, item):
    """Log the changes to the object."""
    mods = ['%s => %r' % (n, getattr(item, n)) for n in item.GetColNames() if item._IsModified(n)]
    if mods:
      logging.info('%s (%r): %s' % (type(item)._table.name, item.GetKey(), ', '.join(mods)))
dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/versions.py/Version._LogUpdate/original