From 069de3d0357fde037f3d9a25c7cef38b5ae5e5a8 Mon Sep 17 00:00:00 2001 From: Jonathan Ellis Date: Tue, 23 Oct 2012 17:12:52 -0500 Subject: [PATCH] omit session, event id, and thread from trace output --- bin/cqlsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/cqlsh b/bin/cqlsh index 84543f4af8..1958ba4714 100755 --- a/bin/cqlsh +++ b/bin/cqlsh @@ -1021,7 +1021,9 @@ class Shell(cmd.Cmd): return True def print_trace(self, session_id): - self.perform_statement_untraced("SELECT * FROM system_traces.events WHERE session_id = '%s'" % session_id) + out = self.query_out + out.write('\nTracing session: %s\n\n' % session_id) + self.perform_statement_untraced("SELECT activity, happened_at, source, source_elapsed FROM system_traces.events WHERE session_id = '%s'" % session_id) # these next two functions are not guaranteed perfect; just checks if the # statement parses fully according to cqlsh's own understanding of the