plugins: log failure to load plugin as a warning
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 15 Jul 2019 02:45:56 +0000 (22:45 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 18 Jul 2019 05:27:26 +0000 (01:27 -0400)
commita0cdfce8f136c825d057433ee6cf5b42b3421d3a
tree814ff36bdecd8f91fd0de944c3cf7fa70b73786b
parentb841eced73b140d37c264befa35279e8b357c0d3
plugins: log failure to load plugin as a warning

In my experience writing a Python plugin, it is really helpful to see
when it fails to load, with a traceback of the failure.  We currently
output this failure at the "info" level, which is not shown by default.
Even if I set the log level to info, that failure is lost in a sea of
messages.

So, even if fail_on_load_error is false, a plugin that fails to load
is a bit suspicious and is warn-worthy, in my opinion.

Change-Id: I82844aaa62d33dc0ad1059d515ae1581356f4fe9
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1706
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/lib/plugin/plugin-so.c
src/python-plugin-provider/python-plugin-provider.c
This page took 0.02393 seconds and 4 git commands to generate.