[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r32679 - gnunet/src/peerinfo
From: |
gnunet |
Subject: |
[GNUnet-SVN] r32679 - gnunet/src/peerinfo |
Date: |
Mon, 17 Mar 2014 14:23:25 +0100 |
Author: wachs
Date: 2014-03-17 14:23:25 +0100 (Mon, 17 Mar 2014)
New Revision: 32679
Modified:
gnunet/src/peerinfo/gnunet-service-peerinfo.c
Log:
reformating and adding additional log info about hello import
Modified: gnunet/src/peerinfo/gnunet-service-peerinfo.c
===================================================================
--- gnunet/src/peerinfo/gnunet-service-peerinfo.c 2014-03-17 11:02:57 UTC
(rev 32678)
+++ gnunet/src/peerinfo/gnunet-service-peerinfo.c 2014-03-17 13:23:25 UTC
(rev 32679)
@@ -1255,6 +1255,8 @@
notify_list = GNUNET_SERVER_notification_context_create (server, 0);
noio = GNUNET_CONFIGURATION_get_value_yesno (cfg, "peerinfo", "NO_IO");
use_included = GNUNET_CONFIGURATION_get_value_yesno (cfg, "peerinfo",
"USE_INCLUDED_HELLOS");
+ if (GNUNET_SYSERR == use_included)
+ use_included = GNUNET_NO;
GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &shutdown_task,
NULL);
if (GNUNET_YES != noio)
@@ -1277,23 +1279,23 @@
&cron_clean_data_hosts, NULL);
if (GNUNET_YES == use_included)
{
- ip = GNUNET_OS_installation_get_path (GNUNET_OS_IPK_DATADIR);
- GNUNET_asprintf (&peerdir,
- "%shellos",
- ip);
- GNUNET_free (ip);
+ ip = GNUNET_OS_installation_get_path (GNUNET_OS_IPK_DATADIR);
+ GNUNET_asprintf (&peerdir, "%shellos", ip);
+ GNUNET_free(ip);
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- _("Importing HELLOs from `%s'\n"),
- peerdir);
- dsc.matched = 0;
- dsc.remove_files = GNUNET_NO;
+ GNUNET_log(GNUNET_ERROR_TYPE_INFO, _("Importing HELLOs from `%s'\n"),
+ peerdir);
+ dsc.matched = 0;
+ dsc.remove_files = GNUNET_NO;
- GNUNET_DISK_directory_scan (peerdir,
- &hosts_directory_scan_callback, &dsc);
-
- GNUNET_free (peerdir);
+ GNUNET_DISK_directory_scan (peerdir, &hosts_directory_scan_callback,
+ &dsc);
+ GNUNET_free (peerdir);
}
+ else
+ {
+ GNUNET_log(GNUNET_ERROR_TYPE_INFO, _("Skipping import of included
HELLOs\n"));
+ }
}
GNUNET_SERVER_add_handlers (server, handlers);
GNUNET_SERVER_disconnect_notify (server, &disconnect_cb, NULL) ;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r32679 - gnunet/src/peerinfo,
gnunet <=