src.ctf.lttng-live: LOGI instead of LOGW when getting queried for an unknown object
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 22 Jul 2019 18:35:14 +0000 (14:35 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 23 Jul 2019 12:38:53 +0000 (08:38 -0400)
Receiving a query about an unknown object happens in the normal course
of operations, and is not warning-worthy.  In particular, a following
patch will query all source component classes using the `support-info`
object, to see if the source component class supports a given input.
Having a LOGW here would generate a lot of unimportant warnings.

Change-Id: I067424cb72f78aeda6ce6791b12fa00d7d90b5c0
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1741
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/plugins/ctf/lttng-live/lttng-live.c

index 9ec7f5d056199c516a33f43c38d2a45f41db15ea..93ff89bdbf0de03d0d6d58bec72a79d7b37077b2 100644 (file)
@@ -1457,7 +1457,7 @@ bt_component_class_query_method_status lttng_live_query(
                status = lttng_live_query_list_sessions(params, result,
                        log_level);
        } else {
-               BT_COMP_LOGW("Unknown query object `%s`", object);
+               BT_COMP_LOGI("Unknown query object `%s`", object);
                status = BT_COMPONENT_CLASS_QUERY_METHOD_STATUS_INVALID_OBJECT;
                goto end;
        }
This page took 0.026349 seconds and 4 git commands to generate.