Skip to content

Commit

Permalink
lisa.trace: Only show closest matches in MissingTraceEventError
Browse files Browse the repository at this point in the history
FEATURE

Do not show the full set of available events as it typically is very
large and makes the output hard to read. Instead, only show the closest
matches for the events that are missing.
  • Loading branch information
douglas-raillard-arm committed Jan 17, 2024
1 parent 77f7db9 commit 89bd8c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lisa/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -5591,9 +5591,8 @@ def __str__(self):
)
if matches
}
available = '. Closest available matches are: {}. Available events are: {}'.format(
available = '. Closest available matches are: {}'.format(
', '.join(sorted(closest)),
', '.join(sorted(available))
)
else:
available = ''
Expand Down

0 comments on commit 89bd8c3

Please sign in to comment.