Skip to content

Commit

Permalink
There is a default top-level-action.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomprince committed Jun 16, 2015
1 parent 51a9ee7 commit 1a03a76
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions eliot/_message.py
Expand Up @@ -102,9 +102,8 @@ def write(self, logger=None, action=None):
action = _defaultAction
contents = self._contents.copy()
contents["timestamp"] = self._timestamp()
if action is not None:
contents["task_uuid"] = action._identification["task_uuid"]
contents["task_level"] = action._nextTaskLevel().level
contents["task_uuid"] = action._identification["task_uuid"]
contents["task_level"] = action._nextTaskLevel().level
logger.write(contents, self._serializer)


Expand Down

0 comments on commit 1a03a76

Please sign in to comment.