sink.text.pretty: print discarded events and packets messages
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 4 Jul 2017 17:59:54 +0000 (13:59 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 6 Jul 2017 20:26:54 +0000 (16:26 -0400)
When getting a discarded events or discarded packets notification in
sink.text.pretty, print a warning on the standard error stream (to
remain compatible with Babeltrace 1 which does that) which looks like
this:

    WARNING: Tracer discarded 83565 events between [20:01:32.062781965]
    and [20:01:32.126649071] in trace "hostname/the-trace" (UUID:
    a560bbc4-7f93-b346-a980-3959745a0f5d) within stream
    "/home/user/my-traces/the-trace/stream-1048576_3_0"
    (stream class ID: 1, stream ID: 3).

The message also indicates when the trace has no UUID, or when the
stream has no (instance) ID. The stream class ID is always available.
When the trace's or stream's name is unavailable, `(unknown)` is
printed.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>

No differences found
This page took 0.040319 seconds and 4 git commands to generate.