plugin-loader: Log message when failing to load plugin
[strongswan.git] / src / libstrongswan / plugins / plugin_loader.c
index 828a620..4464871 100644 (file)
@@ -660,6 +660,14 @@ static void load_feature(private_plugin_loader_t *this,
                }
                else
                {
+                       char *name, *provide;
+
+                       name = provided->entry->plugin->get_name(provided->entry->plugin);
+                       provide = plugin_feature_get_string(&provided->feature[0]);
+                       DBG2(DBG_LIB, "feature %s in plugin '%s' failed to load",
+                                provide, name);
+                       free(provide);
+
                        provided->failed = TRUE;
                }
        }