lib: add comment about why `bt_lib_log_level` is exported
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 19 Jun 2019 07:11:36 +0000 (03:11 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 20 Jun 2019 18:01:16 +0000 (14:01 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Ic3dd3ff9cb6f39ac369a55c06ef9a752d60d7fc7
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1512
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
src/lib/logging.c

index fa782b44b850851d3df39bc41088ceba17d6d190..8f3160b5ffa635abaad5a78b4a2dbeb576eb0483 100644 (file)
 # 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)
This page took 0.025055 seconds and 4 git commands to generate.