omit session, event id, and thread from trace output
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/069de3d0 Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/069de3d0 Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/069de3d0 Branch: refs/heads/trunk Commit: 069de3d0357fde037f3d9a25c7cef38b5ae5e5a8 Parents: 36b40be Author: Jonathan Ellis <[email protected]> Authored: Tue Oct 23 17:12:52 2012 -0500 Committer: Jonathan Ellis <[email protected]> Committed: Tue Oct 23 20:58:38 2012 -0500 ---------------------------------------------------------------------- bin/cqlsh | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/069de3d0/bin/cqlsh ---------------------------------------------------------------------- diff --git a/bin/cqlsh b/bin/cqlsh index 84543f4..1958ba4 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
