aboutsummaryrefslogtreecommitdiff
path: root/src/psycstore/gnunet-service-psycstore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/psycstore/gnunet-service-psycstore.c')
-rw-r--r--src/psycstore/gnunet-service-psycstore.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/psycstore/gnunet-service-psycstore.c b/src/psycstore/gnunet-service-psycstore.c
index 737cff422..e02f77714 100644
--- a/src/psycstore/gnunet-service-psycstore.c
+++ b/src/psycstore/gnunet-service-psycstore.c
@@ -946,11 +946,15 @@ run (void *cls, struct GNUNET_SERVER_Handle *server,
946 GNUNET_CONFIGURATION_get_value_string (cfg, "psycstore", "database", 946 GNUNET_CONFIGURATION_get_value_string (cfg, "psycstore", "database",
947 &database)) 947 &database))
948 { 948 {
949 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "No database backend configured\n"); 949 GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
950 "psycstore",
951 "database");
950 } 952 }
951 else 953 else
952 { 954 {
953 GNUNET_asprintf (&db_lib_name, "libgnunet_plugin_psycstore_%s", database); 955 GNUNET_asprintf (&db_lib_name,
956 "libgnunet_plugin_psycstore_%s",
957 database);
954 db = GNUNET_PLUGIN_load (db_lib_name, (void *) cfg); 958 db = GNUNET_PLUGIN_load (db_lib_name, (void *) cfg);
955 GNUNET_free (database); 959 GNUNET_free (database);
956 } 960 }
@@ -966,8 +970,8 @@ run (void *cls, struct GNUNET_SERVER_Handle *server,
966 stats = GNUNET_STATISTICS_create ("psycstore", cfg); 970 stats = GNUNET_STATISTICS_create ("psycstore", cfg);
967 GNUNET_SERVER_add_handlers (server, handlers); 971 GNUNET_SERVER_add_handlers (server, handlers);
968 nc = GNUNET_SERVER_notification_context_create (server, 1); 972 nc = GNUNET_SERVER_notification_context_create (server, 1);
969 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &shutdown_task, 973 GNUNET_SCHEDULER_add_shutdown (&shutdown_task,
970 NULL); 974 NULL);
971} 975}
972 976
973 977