dhtlog updates
[oweals/gnunet.git] / src / util / server.c
index e543de6670150c5bf8c5f1d06f5864debe83df78..6a59ce86688d628741e942f7095e86a4946861ad 100644 (file)
@@ -617,11 +617,13 @@ GNUNET_SERVER_inject (struct GNUNET_SERVER_Handle *server,
             {
               if ((mh->expected_size != 0) && (mh->expected_size != size))
                 {
-                 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                             _("Expected %u bytes for message of type %u, got %u\n"),
+#if DEBUG_SERVER
+                 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+                             "Expected %u bytes for message of type %u, got %u\n",
                              mh->expected_size,
                              mh->type,
                              size);
+#endif
                   GNUNET_break_op (0);
                   return GNUNET_SYSERR;
                 }