log: disable the non-buffered logging YAZ-780
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 19 Aug 2014 08:51:15 +0000 (10:51 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 19 Aug 2014 08:51:15 +0000 (10:51 +0200)
This makes yaz_log on regular files make one write per line rather
than one write per fprintf call.

src/log.c

index e3c8dc8..bbaf4fb 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -340,8 +340,6 @@ static void yaz_log_open_check(struct tm *tm, int force, const char *filemode)
         {
             yaz_log_close();
             yaz_log_info.log_file = new_file;
-            if (l_level & YLOG_FLUSH)
-                setvbuf(yaz_log_info.log_file, 0, _IONBF, 0);
         }
         else
         {