Bug #988
closedlttng -q option not functional
100%
Description
lttng -q (quiet) option doesn't work for stop, destroy, view commands (didn't test the rest of commands):
$ lttng -V
lttng (LTTng Trace Control) 2.7.0 - Herbe à Détourne
$ lttng stop x
Error: Session name not found
$ lttng -q stop x
Error: Session name not found
$ lttng destroy x
Error: Session name x not found
$ lttng -q destroy x
Error: Session name x not found
$ lttng create
Session auto-20160110-113725 created.
Traces will be written in /home/john/lttng-traces/auto-20160110-113725
$ lttng enable-event -a -u
All UST events are enabled in channel channel0
$ lttng start
Tracing started for session auto-20160110-113725
$ lttng stop
Waiting for data availability
Tracing stopped for session auto-20160110-113725
$ lttng view
Trace directory: /home/john/lttng-traces/auto-20160110-113725
[error] Cannot open any trace for reading.
[error] opening trace "/home/john/lttng-traces/auto-20160110-113725" for reading.
[error] none of the specified trace paths could be opened.
$ lttng -q view
[error] Cannot open any trace for reading.
[error] opening trace "/home/john/lttng-traces/auto-20160110-113725" for reading.
[error] none of the specified trace paths could be opened.
Updated by Jonathan Rajotte Julien almost 9 years ago
- Status changed from New to Feedback
- Assignee set to Jonathan Rajotte Julien
- Priority changed from Normal to Low
- Target version set to 2.8
Hi
Here is a proposed fix [1] that will suppress most of the output you see.
[1] http://lists.lttng.org/pipermail/lttng-dev/2016-January/025424.html
Cheers!
Updated by Jonathan Rajotte Julien almost 9 years ago
- Status changed from Feedback to Resolved
- % Done changed from 0 to 100
Applied in changeset tools|commit:017429025b3f27b7fdbd931a30f310869479f66e.