def METHOD_NAME(event):
    """Trigger infobase.edit event for edits."""
    if event.name in ['save', 'save_many']:
        changeset = event.data['changeset']
        author = changeset['author'] or changeset['ip']
        keys = [c['key'] for c in changeset['changes']]
        logger.info(
            "Edit by %s, changeset_id=%s, changes=%s", author, changeset["id"], keys
        )
        eventer.trigger("infobase.edit", changeset)