From: Philippe Proulx Date: Wed, 19 Jun 2019 07:11:36 +0000 (-0400) Subject: lib: add comment about why `bt_lib_log_level` is exported X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=92e0fb04874a3513a075eed5ade05f3ed2c7479a 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 --- 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)