do not write set data logs at all since they are redundant w/ burnettk
This commit is contained in:
parent
8fa5866f94
commit
978f5f2180
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue