'Update information for the specified log object'

@db_base_plugin_common.convert_result_to_dict
def update_log(self, context, log_id, log):

    log_data = log['log']
    with db_api.context_manager.writer.using(context):
        log_obj = log_object.Log(context, id=log_id)
        log_obj.update_fields(log_data, reset_changes=True)
        log_obj.update()
    return log_obj
