From 07238f06017074779b0397a4293f476565a897c7 Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Wed, 17 Jan 2024 11:59:06 +0000 Subject: [PATCH] lisa.trace: Only show closest matches in MissingTraceEventError 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. --- lisa/trace.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisa/trace.py b/lisa/trace.py index e080262e8..3049be9bb 100644 --- a/lisa/trace.py +++ b/lisa/trace.py @@ -5591,9 +5591,8 @@ class MissingTraceEventError(RuntimeError, ValueError): ) 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 = '' -- GitLab