aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core_api.c24
1 files changed, 15 insertions, 9 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c
index 3fcb5fb37..51260c969 100644
--- a/src/core/core_api.c
+++ b/src/core/core_api.c
@@ -548,16 +548,22 @@ init_reply_handler (void *cls, const struct GNUNET_MessageHeader *msg)
548 (ntohs (msg->type) != GNUNET_MESSAGE_TYPE_CORE_INIT_REPLY)) 548 (ntohs (msg->type) != GNUNET_MESSAGE_TYPE_CORE_INIT_REPLY))
549 { 549 {
550 if (msg != NULL) 550 if (msg != NULL)
551 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 551 {
552 _ 552 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
553 ("Error connecting to core service (failed to receive `%s' message, got message of type %u and size %u).\n"), 553 _
554 "INIT_REPLY", 554 ("Error connecting to core service (failed to receive `%s' message, got message of type %u and size %u).\n"),
555 ntohs (msg->type), 555 "INIT_REPLY",
556 ntohs (msg->size)); 556 ntohs (msg->type),
557 ntohs (msg->size));
558 GNUNET_break (0);
559 }
557 else 560 else
558 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 561 {
559 _("Failed to connect to core service.\n")); 562#if DEBUG_CORE
560 GNUNET_break (msg == NULL); 563 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
564 _("Failed to connect to core service, will retry.\n"));
565#endif
566 }
561 transmit_start (h, 0, NULL); 567 transmit_start (h, 0, NULL);
562 return; 568 return;
563 } 569 }