From: Christophe de Dinechin <dinechin@xxxxxxxxxx> Signed-off-by: Christophe de Dinechin <dinechin@xxxxxxxxxx> --- src/concrete-agent.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/concrete-agent.cpp b/src/concrete-agent.cpp index 192054a..ddeac8e 100644 --- a/src/concrete-agent.cpp +++ b/src/concrete-agent.cpp @@ -89,11 +89,15 @@ void ConcreteAgent::LoadPlugin(const char *plugin_filename) PluginInitFunc* init_func = (PluginInitFunc *) dlsym(dl, "spice_streaming_agent_plugin_init"); if (!init_func || !init_func(this)) { + syslog(LOG_ERR, "error loading plugin %s: %s", + plugin_filename, + init_func ? "module init failed" : "no module init function"); dlclose(dl); } } catch (std::runtime_error &err) { - syslog(LOG_ERR, "%s", err.what()); + syslog(LOG_ERR, "error loading plugin %s: %s", + plugin_filename, err.what()); dlclose(dl); } } -- 2.13.5 (Apple Git-94) _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel