do not write set data logs at all since they are redundant w/ burnettk

This commit is contained in:
jasquat 2023-01-18 17:03:55 -05:00
parent 8fa5866f94
commit 978f5f2180

View File

@ -708,22 +708,17 @@ class Task(object, metaclass=DeprecatedMetaTask):
def _get_internal_data(self, name, default=None): def _get_internal_data(self, name, default=None):
return self.internal_data.get(name, default) return self.internal_data.get(name, default)
def set_data(self, write_to_log=True, **kwargs): def set_data(self, **kwargs):
""" """
Defines the given attribute/value pairs. Defines the given attribute/value pairs.
""" """
self.data.update(kwargs) self.data.update(kwargs)
if write_to_log:
data_log.info('Set data', extra=self.log_info())
def _inherit_data(self): def _inherit_data(self):
""" """
Inherits the data from the parent. Inherits the data from the parent.
""" """
self.set_data(**self.parent.data)
# no need to write to a log when we are just inheriting data
self.set_data(**self.parent.data, write_to_log=False)
def get_data(self, name, default=None): def get_data(self, name, default=None):
""" """