flush
authorChristian Grothoff <christian@grothoff.org>
Tue, 16 Mar 2010 09:04:51 +0000 (09:04 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 16 Mar 2010 09:04:51 +0000 (09:04 +0000)
src/util/common_logging.c

index 13cb17af7f955db67b453d7bd1ba9c72878667db..73a374f465bbc50738bf2efc54633ac927e6c1b8 100644 (file)
@@ -260,8 +260,11 @@ output_message (enum GNUNET_ErrorType kind,
 {
   struct CustomLogger *pos;
   if (GNUNET_stderr != NULL)
-    fprintf (GNUNET_stderr, "%s %s %s %s", datestr, comp, 
-             GNUNET_error_type_to_string (kind), msg);
+    {
+      fprintf (GNUNET_stderr, "%s %s %s %s", datestr, comp, 
+              GNUNET_error_type_to_string (kind), msg);
+      fflush (GNUNET_stderr);
+    }
   pos = loggers;
   while (pos != NULL)
     {