From 32a09ecd3dfc34e9b4778905fb878f7e30fa6994 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 22 Jul 2019 14:35:14 -0400 Subject: [PATCH] src.ctf.lttng-live: LOGI instead of LOGW when getting queried for an unknown object 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 Reviewed-on: https://review.lttng.org/c/babeltrace/+/1741 Tested-by: jenkins Reviewed-by: Philippe Proulx --- src/plugins/ctf/lttng-live/lttng-live.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/ctf/lttng-live/lttng-live.c b/src/plugins/ctf/lttng-live/lttng-live.c index 9ec7f5d0..93ff89bd 100644 --- a/src/plugins/ctf/lttng-live/lttng-live.c +++ b/src/plugins/ctf/lttng-live/lttng-live.c @@ -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; } -- 2.34.1