Project

General

Profile

Actions

Bug #1024

open

lttng save [--all] issues misleading message when there are no sessions to save

Added by Daniel U. Thibault over 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
06/14/2016
Due date:
% Done:

0%

Estimated time:

Description

On a freshly-booted system where no LTTng sessions have yet been created, you have this:

$ lttng list
Currently no available tracing session
$ lttng save --all
All sessions have been saved successfully

The latter message is misleading because nothing has been saved anywhere. lttng save [--all] should detect the no-sessions case and respond like lttng list does, by stating 'Currently no tracing sessions to save'.

As an aside, both lttng list and lttng save should probably return error code 4 (command warning) when there are no sessions.

No data to display

Actions

Also available in: Atom PDF