def create_action_log(cls, task): from nailgun.objects import ActionLog try: create_kwargs = cls.prepare_action_log_kwargs(task) return ActionLog.create(create_kwargs) except Exception as e: logger.error("create_action_log failed: %s", six.text_type(e))
def create_action_log(cls, task): """Creates action log :param task: SqlAlchemy task object :return: SqlAlchemy action_log object """ from nailgun.objects import ActionLog try: create_kwargs = cls.prepare_action_log_kwargs(task) return ActionLog.create(create_kwargs) except Exception as e: logger.error("create_action_log failed: %s", six.text_type(e))
def create_action_log(cls, task): try: create_kwargs = cls.prepare_action_log_kwargs(task) return ActionLog.create(create_kwargs) except Exception as e: logger.error("create_action_log failed: %s", six.text_type(e))