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
1 changed files with 2 additions and 7 deletions

View File

@ -708,22 +708,17 @@ class Task(object, metaclass=DeprecatedMetaTask):
def _get_internal_data(self, name, default=None):
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.
"""
self.data.update(kwargs)
if write_to_log:
data_log.info('Set data', extra=self.log_info())
def _inherit_data(self):
"""
Inherits the data from the parent.
"""
# no need to write to a log when we are just inheriting data
self.set_data(**self.parent.data, write_to_log=False)
self.set_data(**self.parent.data)
def get_data(self, name, default=None):
"""