Skip to content

Commit

Permalink
Limit output logs to only 10 items
Browse files Browse the repository at this point in the history
  • Loading branch information
isra17 committed Jul 28, 2023
1 parent 699587f commit 2a67792
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/saturn_engine/worker/services/loggers/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ def published_data(self, event: MessagePublished) -> dict[str, t.Any]:

def result_data(self, results: PipelineResults) -> dict[str, t.Any]:
return {
"output": [self.output_data(o) for o in results.outputs],
"output": [self.output_data(o) for o in results.outputs[:10]],
"output_count": len(results.outputs),
"resources": self.resources_used(results.resources),
}

Expand Down

0 comments on commit 2a67792

Please sign in to comment.