Code

Automatically prefix all log messages with the plugin name (if available).
[sysdb.git] / src / plugins / store / memory.c
index 67a795b0ef3d7d1d6ba362ef7fc62fc6d9286004..7e79378aa83a1fb0f2f34d39d40c52b9ca18c7d3 100644 (file)
@@ -31,6 +31,7 @@
 
 #include "sysdb.h"
 #include "core/plugin.h"
+#include "core/memstore.h"
 #include "core/store.h"
 #include "utils/error.h"
 
@@ -46,7 +47,7 @@ mem_init(sdb_object_t *user_data)
        sdb_memstore_t *store = SDB_MEMSTORE(user_data);
 
        if (! store) {
-               sdb_log(SDB_LOG_ERR, "store: Failed to allocate store");
+               sdb_log(SDB_LOG_ERR, "Failed to allocate store");
                return -1;
        }
        if (sdb_plugin_register_writer("memstore",
@@ -84,8 +85,7 @@ sdb_module_init(sdb_plugin_info_t *info)
 
        if (! store) {
                if (! (store = sdb_memstore_create())) {
-                       sdb_log(SDB_LOG_ERR, "store::memory plugin: "
-                                       "Failed to create store object");
+                       sdb_log(SDB_LOG_ERR, "Failed to create store object");
                        return -1;
                }
        }