omit session, event id, and thread from trace output

This commit is contained in:
Jonathan Ellis 2012-10-23 17:12:52 -05:00
parent 36b40be64f
commit 069de3d035
1 changed files with 3 additions and 1 deletions

View File

@ -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