nicer-log
authorChristian Grothoff <christian@grothoff.org>
Tue, 11 May 2010 19:25:55 +0000 (19:25 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 11 May 2010 19:25:55 +0000 (19:25 +0000)
src/core/core_api.c

index 3fcb5fb37997e9c0309798972f461f82ed1fc121..51260c969d56d16b7019566102e90a45ab7f82e9 100644 (file)
@@ -548,16 +548,22 @@ init_reply_handler (void *cls, const struct GNUNET_MessageHeader *msg)
       (ntohs (msg->type) != GNUNET_MESSAGE_TYPE_CORE_INIT_REPLY))
     {
       if (msg != NULL)
-       GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                   _
-                   ("Error connecting to core service (failed to receive `%s' message, got message of type %u and size %u).\n"),
-                   "INIT_REPLY",
-                   ntohs (msg->type),
-                   ntohs (msg->size));
+       {
+         GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                     _
+                     ("Error connecting to core service (failed to receive `%s' message, got message of type %u and size %u).\n"),
+                     "INIT_REPLY",
+                     ntohs (msg->type),
+                     ntohs (msg->size));
+         GNUNET_break (0);
+       }
       else
-       GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
-                   _("Failed to connect to core service.\n"));
-      GNUNET_break (msg == NULL);
+       {
+#if DEBUG_CORE
+         GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+                     _("Failed to connect to core service, will retry.\n"));
+#endif
+       }
       transmit_start (h, 0, NULL);
       return;
     }