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)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 18 Jul 2019 15:53:36 +0000 (11:53 -0400)
commit6b0765905e56acc4abc02903e2d5ba55b3d78265
tree3d5cb2f40d720a50e70b426a8b9cf6581493b613
parent6944e053dfbcd90e7510234b0607dbd16005b899
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.026156 seconds and 4 git commands to generate.