diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-05-11 19:25:55 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-05-11 19:25:55 +0000 |
commit | f557d63b75c8b14922e4a308dfc486f7e4e9f6db (patch) | |
tree | 4e0cd22e9381ca636302005044eb087a24ffd825 /src | |
parent | cb20e0d2cb61f73bb27f4ed4476e5f4ed9d02665 (diff) | |
download | gnunet-f557d63b75c8b14922e4a308dfc486f7e4e9f6db.tar.gz gnunet-f557d63b75c8b14922e4a308dfc486f7e4e9f6db.zip |
nicer-log
Diffstat (limited to 'src')
-rw-r--r-- | src/core/core_api.c | 24 |
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 | } |