mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-30 19:56:20 +00:00
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):
|
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):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user