From 978f5f2180a21823aa63431c33f50644527f1c68 Mon Sep 17 00:00:00 2001 From: jasquat Date: Wed, 18 Jan 2023 17:03:55 -0500 Subject: [PATCH] do not write set data logs at all since they are redundant w/ burnettk --- SpiffWorkflow/SpiffWorkflow/task.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/SpiffWorkflow/SpiffWorkflow/task.py b/SpiffWorkflow/SpiffWorkflow/task.py index 39eb3fdc..ac5f028f 100644 --- a/SpiffWorkflow/SpiffWorkflow/task.py +++ b/SpiffWorkflow/SpiffWorkflow/task.py @@ -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): """