nicer msgs
authorChristian Grothoff <christian@grothoff.org>
Thu, 18 Feb 2010 13:15:00 +0000 (13:15 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 18 Feb 2010 13:15:00 +0000 (13:15 +0000)
src/core/gnunet-service-core.c
src/hostlist/hostlist-client.c

index 2d2b4ea87d0a665e17df266f4b794c87bee08a05..742a8ce76f1bc71d72fb565ba69e0b00dd99477d 100644 (file)
@@ -1177,10 +1177,12 @@ notify_encrypted_transmit_ready (void *cls, size_t size, void *buf)
     }
   else
     {
-      GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+#if DEBUG_CORE
+      GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                   "Transmission of message of type %u and size %u failed\n",
                   ntohs (((struct GNUNET_MessageHeader *) &m[1])->type),
                   m->size);
+#endif
     }
   GNUNET_free (m);
   consider_free_neighbour (n);
index 972e2d27d778f400725894f3669bd6bcc4baa05e..3a6987b6b81d7c163c1ee0c4d6f62afab7275eb6 100644 (file)
@@ -372,16 +372,19 @@ multi_ready (void *cls,
              switch (msg->msg)
                {
                case CURLMSG_DONE:
-                 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
-                             _("Download of hostlist `%s' completed.\n"),
-                             current_url);
                  if ( (msg->data.result != CURLE_OK) &&
                       (msg->data.result != CURLE_GOT_NOTHING) )                       
-                   GNUNET_log(GNUNET_ERROR_TYPE_ERROR,
-                              _("%s failed at %s:%d: `%s'\n"),
-                              "curl_multi_perform", __FILE__,
+                   GNUNET_log(GNUNET_ERROR_TYPE_INFO,
+                              _("%s failed for `%s' at %s:%d: `%s'\n"),
+                              "curl_multi_perform", 
+                              current_url,
+                              __FILE__,
                               __LINE__,
                               curl_easy_strerror (msg->data.result));            
+                 else
+                   GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+                               _("Download of hostlist `%s' completed.\n"),
+                               current_url);
                  clean_up ();
                  return;
                default:
@@ -394,7 +397,7 @@ multi_ready (void *cls,
   while (mret == CURLM_CALL_MULTI_PERFORM);
   if (mret != CURLM_OK)
     {
-      GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+      GNUNET_log (GNUNET_ERROR_TYPE_INFO,
                  _("%s failed at %s:%d: `%s'\n"),
                  "curl_multi_perform", __FILE__, __LINE__,
                  curl_multi_strerror (mret));