From 92e0fb04874a3513a075eed5ade05f3ed2c7479a Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Wed, 19 Jun 2019 03:11:36 -0400 Subject: [PATCH] lib: add comment about why `bt_lib_log_level` is exported Signed-off-by: Philippe Proulx Change-Id: Ic3dd3ff9cb6f39ac369a55c06ef9a752d60d7fc7 Reviewed-on: https://review.lttng.org/c/babeltrace/+/1512 Reviewed-by: Francis Deslauriers --- src/lib/logging.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/logging.c b/src/lib/logging.c index fa782b44..8f3160b5 100644 --- a/src/lib/logging.c +++ b/src/lib/logging.c @@ -44,6 +44,12 @@ # define DEFAULT_LOG_LEVEL BT_LOG_NONE #endif /* BT_DEV_MODE */ +/* + * This is exported because even though the Python plugin provider is a + * different shared object for packaging purposes, it's still considered + * part of the library and therefore needs the library's run-time log + * level. + */ int bt_lib_log_level = DEFAULT_LOG_LEVEL; enum bt_logging_level bt_logging_get_minimal_level(void) -- 2.34.1